/work/obj-fuzz/dist/include/mozilla/dom/TreeColumnBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM TreeColumn.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_TreeColumnBinding_h |
4 | | #define mozilla_dom_TreeColumnBinding_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 | | class nsTreeColumn; |
15 | | struct nsTreeColumnAtoms; |
16 | | |
17 | | namespace mozilla { |
18 | | namespace dom { |
19 | | |
20 | | struct NativePropertyHooks; |
21 | | class ProtoAndIfaceCache; |
22 | | |
23 | | } // namespace dom |
24 | | } // namespace mozilla |
25 | | |
26 | | namespace mozilla { |
27 | | namespace dom { |
28 | | |
29 | | namespace TreeColumn_Binding { |
30 | | |
31 | | typedef nsTreeColumn NativeType; |
32 | | |
33 | | static const int16_t TYPE_TEXT = 1; |
34 | | static const int16_t TYPE_CHECKBOX = 2; |
35 | | static const int16_t TYPE_PROGRESSMETER = 3; |
36 | | static const int16_t TYPE_PASSWORD = 4; |
37 | | bool |
38 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
39 | | |
40 | | const JSClass* |
41 | | GetJSClass(); |
42 | | |
43 | | bool |
44 | | Wrap(JSContext* aCx, nsTreeColumn* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
45 | | |
46 | | template <class T> |
47 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
48 | 0 | { |
49 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
50 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
51 | 0 | } |
52 | | |
53 | | // We declare this as an array so that retrieving a pointer to this |
54 | | // binding's property hooks only requires compile/link-time resolvable |
55 | | // address arithmetic. Declaring it as a pointer instead would require |
56 | | // doing a run-time load to fetch a pointer to this binding's property |
57 | | // hooks. And then structures which embedded a pointer to this structure |
58 | | // would require a run-time load for proper initialization, which would |
59 | | // then induce static constructors. Lots of static constructors. |
60 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
61 | | |
62 | | void |
63 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
64 | | |
65 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
66 | 0 | { |
67 | 0 | /* Get the interface prototype object for this class. This will create the |
68 | 0 | object as needed. */ |
69 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::TreeColumn, |
70 | 0 | &CreateInterfaceObjects, |
71 | 0 | /* aDefineOnGlobal = */ true); |
72 | 0 |
|
73 | 0 | } |
74 | | |
75 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
76 | 0 | { |
77 | 0 | /* Get the interface object for this class. This will create the object as |
78 | 0 | needed. */ |
79 | 0 |
|
80 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::TreeColumn, |
81 | 0 | &CreateInterfaceObjects, |
82 | 0 | aDefineOnGlobal); |
83 | 0 | } |
84 | | |
85 | | JSObject* |
86 | | GetConstructorObject(JSContext* aCx); |
87 | | |
88 | | } // namespace TreeColumn_Binding |
89 | | |
90 | | |
91 | | |
92 | | } // namespace dom |
93 | | } // namespace mozilla |
94 | | |
95 | | #endif // mozilla_dom_TreeColumnBinding_h |