/work/obj-fuzz/dist/include/mozilla/dom/HTMLEmbedElementBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM HTMLEmbedElement.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_HTMLEmbedElementBinding_h |
4 | | #define mozilla_dom_HTMLEmbedElementBinding_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 HTMLEmbedElement; |
18 | | struct HTMLEmbedElementAtoms; |
19 | | struct NativePropertyHooks; |
20 | | class ProtoAndIfaceCache; |
21 | | |
22 | | } // namespace dom |
23 | | } // namespace mozilla |
24 | | |
25 | | namespace mozilla { |
26 | | namespace dom { |
27 | | |
28 | | namespace HTMLEmbedElement_Binding { |
29 | | |
30 | | typedef mozilla::dom::HTMLEmbedElement NativeType; |
31 | | |
32 | | static const int32_t UNKNOWN_REQUEST = -1; |
33 | | static const int32_t CURRENT_REQUEST = 0; |
34 | | static const int32_t PENDING_REQUEST = 1; |
35 | | static const uint32_t TYPE_LOADING = 0; |
36 | | static const uint32_t TYPE_IMAGE = 1; |
37 | | static const uint32_t TYPE_PLUGIN = 2; |
38 | | static const uint32_t TYPE_FAKE_PLUGIN = 3; |
39 | | static const uint32_t TYPE_DOCUMENT = 4; |
40 | | static const uint32_t TYPE_NULL = 5; |
41 | | static const uint32_t PLUGIN_UNSUPPORTED = 0; |
42 | | static const uint32_t PLUGIN_ALTERNATE = 1; |
43 | | static const uint32_t PLUGIN_DISABLED = 2; |
44 | | static const uint32_t PLUGIN_BLOCKLISTED = 3; |
45 | | static const uint32_t PLUGIN_OUTDATED = 4; |
46 | | static const uint32_t PLUGIN_CRASHED = 5; |
47 | | static const uint32_t PLUGIN_SUPPRESSED = 6; |
48 | | static const uint32_t PLUGIN_USER_DISABLED = 7; |
49 | | static const uint32_t PLUGIN_CLICK_TO_PLAY = 8; |
50 | | static const uint32_t PLUGIN_VULNERABLE_UPDATABLE = 9; |
51 | | static const uint32_t PLUGIN_VULNERABLE_NO_UPDATE = 10; |
52 | | const JSClass* |
53 | | GetJSClass(); |
54 | | |
55 | | bool |
56 | | Wrap(JSContext* aCx, mozilla::dom::HTMLEmbedElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
57 | | |
58 | | template <class T> |
59 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
60 | 0 | { |
61 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
62 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
63 | 0 | } |
64 | | |
65 | | // We declare this as an array so that retrieving a pointer to this |
66 | | // binding's property hooks only requires compile/link-time resolvable |
67 | | // address arithmetic. Declaring it as a pointer instead would require |
68 | | // doing a run-time load to fetch a pointer to this binding's property |
69 | | // hooks. And then structures which embedded a pointer to this structure |
70 | | // would require a run-time load for proper initialization, which would |
71 | | // then induce static constructors. Lots of static constructors. |
72 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
73 | | |
74 | | void |
75 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
76 | | |
77 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
78 | 0 | { |
79 | 0 | /* Get the interface prototype object for this class. This will create the |
80 | 0 | object as needed. */ |
81 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::HTMLEmbedElement, |
82 | 0 | &CreateInterfaceObjects, |
83 | 0 | /* aDefineOnGlobal = */ true); |
84 | 0 |
|
85 | 0 | } |
86 | | |
87 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
88 | 0 | { |
89 | 0 | /* Get the interface object for this class. This will create the object as |
90 | 0 | needed. */ |
91 | 0 |
|
92 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::HTMLEmbedElement, |
93 | 0 | &CreateInterfaceObjects, |
94 | 0 | aDefineOnGlobal); |
95 | 0 | } |
96 | | |
97 | | JSObject* |
98 | | GetConstructorObject(JSContext* aCx); |
99 | | |
100 | | } // namespace HTMLEmbedElement_Binding |
101 | | |
102 | | |
103 | | |
104 | | } // namespace dom |
105 | | } // namespace mozilla |
106 | | |
107 | | #endif // mozilla_dom_HTMLEmbedElementBinding_h |