Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM FakePluginTagInit.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_FakePluginTagInitBinding_h
4 : #define mozilla_dom_FakePluginTagInitBinding_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 : struct FakePluginMimeEntry;
16 : struct FakePluginMimeEntryAtoms;
17 : struct FakePluginTagInitAtoms;
18 : struct NativePropertyHooks;
19 : class ProtoAndIfaceCache;
20 :
21 : } // namespace dom
22 : } // namespace mozilla
23 :
24 : namespace mozilla {
25 : namespace dom {
26 :
27 0 : struct FakePluginMimeEntry : public DictionaryBase
28 : {
29 : MOZ_INIT_OUTSIDE_CTOR nsString mDescription;
30 : MOZ_INIT_OUTSIDE_CTOR nsString mExtension;
31 : MOZ_INIT_OUTSIDE_CTOR nsString mType;
32 :
33 : FakePluginMimeEntry();
34 :
35 : explicit inline FakePluginMimeEntry(const FastDictionaryInitializer& )
36 : {
37 : // Do nothing here; this is used by our "Fast" subclass
38 : }
39 :
40 0 : explicit inline FakePluginMimeEntry(const FakePluginMimeEntry& aOther)
41 0 : {
42 0 : *this = aOther;
43 0 : }
44 :
45 : bool
46 : Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
47 :
48 : bool
49 : Init(const nsAString& aJSON);
50 :
51 : bool
52 : ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
53 :
54 : bool
55 : ToJSON(nsAString& aJSON) const;
56 :
57 : void
58 : TraceDictionary(JSTracer* trc);
59 :
60 : FakePluginMimeEntry&
61 : operator=(const FakePluginMimeEntry& aOther);
62 :
63 : private:
64 : static bool
65 : InitIds(JSContext* cx, FakePluginMimeEntryAtoms* atomsCache);
66 : };
67 :
68 : namespace binding_detail {
69 : struct FastFakePluginMimeEntry : public FakePluginMimeEntry
70 : {
71 : inline FastFakePluginMimeEntry()
72 : : FakePluginMimeEntry(FastDictionaryInitializer())
73 : {
74 : // Doesn't matter what int we pass to the parent constructor
75 : }
76 : };
77 : } // namespace binding_detail
78 :
79 :
80 0 : struct FakePluginTagInit : public DictionaryBase
81 : {
82 : MOZ_INIT_OUTSIDE_CTOR nsString mDescription;
83 : MOZ_INIT_OUTSIDE_CTOR nsString mFileName;
84 : MOZ_INIT_OUTSIDE_CTOR nsString mFullPath;
85 : MOZ_INIT_OUTSIDE_CTOR nsString mHandlerURI;
86 : MOZ_INIT_OUTSIDE_CTOR Sequence<FakePluginMimeEntry> mMimeEntries;
87 : MOZ_INIT_OUTSIDE_CTOR nsString mName;
88 : MOZ_INIT_OUTSIDE_CTOR nsString mNiceName;
89 : MOZ_INIT_OUTSIDE_CTOR nsString mSandboxScript;
90 : MOZ_INIT_OUTSIDE_CTOR nsString mVersion;
91 :
92 : FakePluginTagInit();
93 :
94 : explicit inline FakePluginTagInit(const FastDictionaryInitializer& )
95 : {
96 : // Do nothing here; this is used by our "Fast" subclass
97 : }
98 :
99 : explicit inline FakePluginTagInit(const FakePluginTagInit& aOther)
100 : {
101 : *this = aOther;
102 : }
103 :
104 : bool
105 : Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
106 :
107 : bool
108 : Init(const nsAString& aJSON);
109 :
110 : bool
111 : ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
112 :
113 : bool
114 : ToJSON(nsAString& aJSON) const;
115 :
116 : void
117 : TraceDictionary(JSTracer* trc);
118 :
119 : FakePluginTagInit&
120 : operator=(const FakePluginTagInit& aOther);
121 :
122 : private:
123 : static bool
124 : InitIds(JSContext* cx, FakePluginTagInitAtoms* atomsCache);
125 : };
126 :
127 : namespace binding_detail {
128 : struct FastFakePluginTagInit : public FakePluginTagInit
129 : {
130 : inline FastFakePluginTagInit()
131 : : FakePluginTagInit(FastDictionaryInitializer())
132 : {
133 : // Doesn't matter what int we pass to the parent constructor
134 : }
135 : };
136 : } // namespace binding_detail
137 :
138 :
139 : } // namespace dom
140 : } // namespace mozilla
141 :
142 : #endif // mozilla_dom_FakePluginTagInitBinding_h
|