/work/obj-fuzz/dist/include/mozilla/dom/IDBKeyRangeBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM IDBKeyRange.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_IDBKeyRangeBinding_h |
4 | | #define mozilla_dom_IDBKeyRangeBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "js/RootingAPI.h" |
8 | | #include "jspubtd.h" |
9 | | #include "mozilla/ErrorResult.h" |
10 | | #include "mozilla/dom/BindingDeclarations.h" |
11 | | #include "mozilla/dom/Nullable.h" |
12 | | #include "mozilla/dom/PrototypeList.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class IDBKeyRange; |
18 | | struct IDBKeyRangeAtoms; |
19 | | class IDBLocaleAwareKeyRange; |
20 | | struct IDBLocaleAwareKeyRangeAtoms; |
21 | | struct NativePropertyHooks; |
22 | | class ProtoAndIfaceCache; |
23 | | |
24 | | } // namespace dom |
25 | | } // namespace mozilla |
26 | | |
27 | | namespace mozilla { |
28 | | namespace dom { |
29 | | |
30 | | namespace IDBKeyRange_Binding { |
31 | | |
32 | | typedef mozilla::dom::IDBKeyRange NativeType; |
33 | | |
34 | | const JSClass* |
35 | | GetJSClass(); |
36 | | |
37 | | bool |
38 | | Wrap(JSContext* aCx, mozilla::dom::IDBKeyRange* aObject, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
39 | | |
40 | | // We declare this as an array so that retrieving a pointer to this |
41 | | // binding's property hooks only requires compile/link-time resolvable |
42 | | // address arithmetic. Declaring it as a pointer instead would require |
43 | | // doing a run-time load to fetch a pointer to this binding's property |
44 | | // hooks. And then structures which embedded a pointer to this structure |
45 | | // would require a run-time load for proper initialization, which would |
46 | | // then induce static constructors. Lots of static constructors. |
47 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
48 | | |
49 | | void |
50 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
51 | | |
52 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
53 | 0 | { |
54 | 0 | /* Get the interface prototype object for this class. This will create the |
55 | 0 | object as needed. */ |
56 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::IDBKeyRange, |
57 | 0 | &CreateInterfaceObjects, |
58 | 0 | /* aDefineOnGlobal = */ true); |
59 | 0 |
|
60 | 0 | } |
61 | | |
62 | | JSObject* |
63 | | GetProtoObject(JSContext* aCx); |
64 | | |
65 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
66 | 0 | { |
67 | 0 | /* Get the interface object for this class. This will create the object as |
68 | 0 | needed. */ |
69 | 0 |
|
70 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::IDBKeyRange, |
71 | 0 | &CreateInterfaceObjects, |
72 | 0 | aDefineOnGlobal); |
73 | 0 | } |
74 | | |
75 | | JSObject* |
76 | | GetConstructorObject(JSContext* aCx); |
77 | | |
78 | | } // namespace IDBKeyRange_Binding |
79 | | |
80 | | |
81 | | |
82 | | namespace IDBLocaleAwareKeyRange_Binding { |
83 | | |
84 | | typedef mozilla::dom::IDBLocaleAwareKeyRange NativeType; |
85 | | |
86 | | bool |
87 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
88 | | |
89 | | const JSClass* |
90 | | GetJSClass(); |
91 | | |
92 | | bool |
93 | | Wrap(JSContext* aCx, mozilla::dom::IDBLocaleAwareKeyRange* aObject, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
94 | | |
95 | | // We declare this as an array so that retrieving a pointer to this |
96 | | // binding's property hooks only requires compile/link-time resolvable |
97 | | // address arithmetic. Declaring it as a pointer instead would require |
98 | | // doing a run-time load to fetch a pointer to this binding's property |
99 | | // hooks. And then structures which embedded a pointer to this structure |
100 | | // would require a run-time load for proper initialization, which would |
101 | | // then induce static constructors. Lots of static constructors. |
102 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
103 | | |
104 | | void |
105 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
106 | | |
107 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
108 | 0 | { |
109 | 0 | /* Get the interface prototype object for this class. This will create the |
110 | 0 | object as needed. */ |
111 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::IDBLocaleAwareKeyRange, |
112 | 0 | &CreateInterfaceObjects, |
113 | 0 | /* aDefineOnGlobal = */ true); |
114 | 0 |
|
115 | 0 | } |
116 | | |
117 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
118 | 0 | { |
119 | 0 | /* Get the interface object for this class. This will create the object as |
120 | 0 | needed. */ |
121 | 0 |
|
122 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::IDBLocaleAwareKeyRange, |
123 | 0 | &CreateInterfaceObjects, |
124 | 0 | aDefineOnGlobal); |
125 | 0 | } |
126 | | |
127 | | JSObject* |
128 | | GetConstructorObject(JSContext* aCx); |
129 | | |
130 | | } // namespace IDBLocaleAwareKeyRange_Binding |
131 | | |
132 | | |
133 | | |
134 | | } // namespace dom |
135 | | } // namespace mozilla |
136 | | |
137 | | #endif // mozilla_dom_IDBKeyRangeBinding_h |