Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM HTMLObjectElement.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_HTMLObjectElementBinding_h
4 : #define mozilla_dom_HTMLObjectElementBinding_h
5 :
6 : #include "js/RootingAPI.h"
7 : #include "jspubtd.h"
8 : #include "mozilla/ErrorResult.h"
9 : #include "mozilla/dom/BindingDeclarations.h"
10 : #include "mozilla/dom/Nullable.h"
11 :
12 : namespace mozilla {
13 : namespace dom {
14 :
15 : class HTMLObjectElement;
16 : struct HTMLObjectElementAtoms;
17 : struct MozPluginParameterAtoms;
18 : struct NativePropertyHooks;
19 : class ProtoAndIfaceCache;
20 :
21 : } // namespace dom
22 : } // namespace mozilla
23 :
24 : namespace mozilla {
25 : namespace dom {
26 :
27 0 : struct MozPluginParameter : public DictionaryBase
28 : {
29 : MOZ_INIT_OUTSIDE_CTOR nsString mName;
30 : MOZ_INIT_OUTSIDE_CTOR nsString mValue;
31 :
32 : MozPluginParameter();
33 :
34 : explicit inline MozPluginParameter(const FastDictionaryInitializer& )
35 : {
36 : // Do nothing here; this is used by our "Fast" subclass
37 : }
38 :
39 0 : explicit inline MozPluginParameter(const MozPluginParameter& aOther)
40 0 : {
41 0 : *this = aOther;
42 0 : }
43 :
44 : bool
45 : Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
46 :
47 : bool
48 : Init(const nsAString& aJSON);
49 :
50 : bool
51 : ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
52 :
53 : bool
54 : ToJSON(nsAString& aJSON) const;
55 :
56 : void
57 : TraceDictionary(JSTracer* trc);
58 :
59 : MozPluginParameter&
60 : operator=(const MozPluginParameter& aOther);
61 :
62 : private:
63 : static bool
64 : InitIds(JSContext* cx, MozPluginParameterAtoms* atomsCache);
65 : };
66 :
67 : namespace binding_detail {
68 : struct FastMozPluginParameter : public MozPluginParameter
69 : {
70 : inline FastMozPluginParameter()
71 : : MozPluginParameter(FastDictionaryInitializer())
72 : {
73 : // Doesn't matter what int we pass to the parent constructor
74 : }
75 : };
76 : } // namespace binding_detail
77 :
78 :
79 : namespace HTMLObjectElementBinding {
80 :
81 : typedef mozilla::dom::HTMLObjectElement NativeType;
82 :
83 : JSObject*
84 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
85 :
86 : const JSClass*
87 : GetJSClass();
88 :
89 : bool
90 : Wrap(JSContext* aCx, mozilla::dom::HTMLObjectElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
91 :
92 : template <class T>
93 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
94 : {
95 0 : JS::Rooted<JSObject*> reflector(aCx);
96 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
97 : }
98 :
99 : // We declare this as an array so that retrieving a pointer to this
100 : // binding's property hooks only requires compile/link-time resolvable
101 : // address arithmetic. Declaring it as a pointer instead would require
102 : // doing a run-time load to fetch a pointer to this binding's property
103 : // hooks. And then structures which embedded a pointer to this structure
104 : // would require a run-time load for proper initialization, which would
105 : // then induce static constructors. Lots of static constructors.
106 : extern const NativePropertyHooks sNativePropertyHooks[];
107 :
108 : void
109 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
110 :
111 : JS::Handle<JSObject*>
112 : GetProtoObjectHandle(JSContext* aCx);
113 :
114 : JS::Handle<JSObject*>
115 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
116 :
117 : JSObject*
118 : GetConstructorObject(JSContext* aCx);
119 :
120 : } // namespace HTMLObjectElementBinding
121 :
122 :
123 :
124 : } // namespace dom
125 : } // namespace mozilla
126 :
127 : #endif // mozilla_dom_HTMLObjectElementBinding_h
|