/work/obj-fuzz/dist/include/mozilla/dom/MediaTrackConstraintSetBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM MediaTrackConstraintSet.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_MediaTrackConstraintSetBinding_h |
4 | | #define mozilla_dom_MediaTrackConstraintSetBinding_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/UnionTypes.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | struct ConstrainBooleanParametersAtoms; |
18 | | struct ConstrainDOMStringParametersAtoms; |
19 | | struct ConstrainDoubleRangeAtoms; |
20 | | struct ConstrainLongRangeAtoms; |
21 | | struct NativePropertyHooks; |
22 | | class OwningStringOrStringSequence; |
23 | | class ProtoAndIfaceCache; |
24 | | class StringOrStringSequence; |
25 | | |
26 | | } // namespace dom |
27 | | } // namespace mozilla |
28 | | |
29 | | namespace mozilla { |
30 | | namespace dom { |
31 | | |
32 | | struct ConstrainBooleanParameters : public DictionaryBase |
33 | | { |
34 | | MOZ_INIT_OUTSIDE_CTOR Optional<bool> mExact; |
35 | | MOZ_INIT_OUTSIDE_CTOR Optional<bool> mIdeal; |
36 | | |
37 | | ConstrainBooleanParameters(); |
38 | | |
39 | | explicit inline ConstrainBooleanParameters(const FastDictionaryInitializer& ) |
40 | 0 | { |
41 | 0 | // Do nothing here; this is used by our "Fast" subclass |
42 | 0 | } |
43 | | |
44 | | explicit inline ConstrainBooleanParameters(const ConstrainBooleanParameters& aOther) |
45 | 0 | { |
46 | 0 | *this = aOther; |
47 | 0 | } |
48 | | |
49 | | bool |
50 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
51 | | |
52 | | bool |
53 | | Init(const nsAString& aJSON); |
54 | | |
55 | | bool |
56 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
57 | | |
58 | | bool |
59 | | ToJSON(nsAString& aJSON) const; |
60 | | |
61 | | void |
62 | | TraceDictionary(JSTracer* trc); |
63 | | |
64 | | ConstrainBooleanParameters& |
65 | | operator=(const ConstrainBooleanParameters& aOther); |
66 | | |
67 | | private: |
68 | | static bool |
69 | | InitIds(JSContext* cx, ConstrainBooleanParametersAtoms* atomsCache); |
70 | | }; |
71 | | |
72 | | namespace binding_detail { |
73 | | struct FastConstrainBooleanParameters : public ConstrainBooleanParameters |
74 | | { |
75 | | inline FastConstrainBooleanParameters() |
76 | | : ConstrainBooleanParameters(FastDictionaryInitializer()) |
77 | 0 | { |
78 | 0 | // Doesn't matter what int we pass to the parent constructor |
79 | 0 | } |
80 | | }; |
81 | | } // namespace binding_detail |
82 | | |
83 | | |
84 | | struct ConstrainDOMStringParameters : public DictionaryBase |
85 | | { |
86 | | MOZ_INIT_OUTSIDE_CTOR Optional<OwningStringOrStringSequence> mExact; |
87 | | MOZ_INIT_OUTSIDE_CTOR Optional<OwningStringOrStringSequence> mIdeal; |
88 | | |
89 | | ConstrainDOMStringParameters(); |
90 | | |
91 | | explicit inline ConstrainDOMStringParameters(const FastDictionaryInitializer& ) |
92 | 0 | { |
93 | 0 | // Do nothing here; this is used by our "Fast" subclass |
94 | 0 | } |
95 | | |
96 | | explicit inline ConstrainDOMStringParameters(const ConstrainDOMStringParameters& aOther) |
97 | 0 | { |
98 | 0 | *this = aOther; |
99 | 0 | } |
100 | | |
101 | | bool |
102 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
103 | | |
104 | | bool |
105 | | Init(const nsAString& aJSON); |
106 | | |
107 | | bool |
108 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
109 | | |
110 | | bool |
111 | | ToJSON(nsAString& aJSON) const; |
112 | | |
113 | | void |
114 | | TraceDictionary(JSTracer* trc); |
115 | | |
116 | | ConstrainDOMStringParameters& |
117 | | operator=(const ConstrainDOMStringParameters& aOther); |
118 | | |
119 | | private: |
120 | | static bool |
121 | | InitIds(JSContext* cx, ConstrainDOMStringParametersAtoms* atomsCache); |
122 | | }; |
123 | | |
124 | | namespace binding_detail { |
125 | | struct FastConstrainDOMStringParameters : public ConstrainDOMStringParameters |
126 | | { |
127 | | inline FastConstrainDOMStringParameters() |
128 | | : ConstrainDOMStringParameters(FastDictionaryInitializer()) |
129 | 0 | { |
130 | 0 | // Doesn't matter what int we pass to the parent constructor |
131 | 0 | } |
132 | | }; |
133 | | } // namespace binding_detail |
134 | | |
135 | | |
136 | | struct ConstrainDoubleRange : public DictionaryBase |
137 | | { |
138 | | MOZ_INIT_OUTSIDE_CTOR Optional<double> mExact; |
139 | | MOZ_INIT_OUTSIDE_CTOR Optional<double> mIdeal; |
140 | | MOZ_INIT_OUTSIDE_CTOR Optional<double> mMax; |
141 | | MOZ_INIT_OUTSIDE_CTOR Optional<double> mMin; |
142 | | |
143 | | ConstrainDoubleRange(); |
144 | | |
145 | | explicit inline ConstrainDoubleRange(const FastDictionaryInitializer& ) |
146 | 0 | { |
147 | 0 | // Do nothing here; this is used by our "Fast" subclass |
148 | 0 | } |
149 | | |
150 | | explicit inline ConstrainDoubleRange(const ConstrainDoubleRange& aOther) |
151 | 0 | { |
152 | 0 | *this = aOther; |
153 | 0 | } |
154 | | |
155 | | bool |
156 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
157 | | |
158 | | bool |
159 | | Init(const nsAString& aJSON); |
160 | | |
161 | | bool |
162 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
163 | | |
164 | | bool |
165 | | ToJSON(nsAString& aJSON) const; |
166 | | |
167 | | void |
168 | | TraceDictionary(JSTracer* trc); |
169 | | |
170 | | ConstrainDoubleRange& |
171 | | operator=(const ConstrainDoubleRange& aOther); |
172 | | |
173 | | private: |
174 | | static bool |
175 | | InitIds(JSContext* cx, ConstrainDoubleRangeAtoms* atomsCache); |
176 | | }; |
177 | | |
178 | | namespace binding_detail { |
179 | | struct FastConstrainDoubleRange : public ConstrainDoubleRange |
180 | | { |
181 | | inline FastConstrainDoubleRange() |
182 | | : ConstrainDoubleRange(FastDictionaryInitializer()) |
183 | 0 | { |
184 | 0 | // Doesn't matter what int we pass to the parent constructor |
185 | 0 | } |
186 | | }; |
187 | | } // namespace binding_detail |
188 | | |
189 | | |
190 | | struct ConstrainLongRange : public DictionaryBase |
191 | | { |
192 | | MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mExact; |
193 | | MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mIdeal; |
194 | | MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mMax; |
195 | | MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mMin; |
196 | | |
197 | | ConstrainLongRange(); |
198 | | |
199 | | explicit inline ConstrainLongRange(const FastDictionaryInitializer& ) |
200 | 0 | { |
201 | 0 | // Do nothing here; this is used by our "Fast" subclass |
202 | 0 | } |
203 | | |
204 | | explicit inline ConstrainLongRange(const ConstrainLongRange& aOther) |
205 | 0 | { |
206 | 0 | *this = aOther; |
207 | 0 | } |
208 | | |
209 | | bool |
210 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
211 | | |
212 | | bool |
213 | | Init(const nsAString& aJSON); |
214 | | |
215 | | bool |
216 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
217 | | |
218 | | bool |
219 | | ToJSON(nsAString& aJSON) const; |
220 | | |
221 | | void |
222 | | TraceDictionary(JSTracer* trc); |
223 | | |
224 | | ConstrainLongRange& |
225 | | operator=(const ConstrainLongRange& aOther); |
226 | | |
227 | | private: |
228 | | static bool |
229 | | InitIds(JSContext* cx, ConstrainLongRangeAtoms* atomsCache); |
230 | | }; |
231 | | |
232 | | namespace binding_detail { |
233 | | struct FastConstrainLongRange : public ConstrainLongRange |
234 | | { |
235 | | inline FastConstrainLongRange() |
236 | | : ConstrainLongRange(FastDictionaryInitializer()) |
237 | 0 | { |
238 | 0 | // Doesn't matter what int we pass to the parent constructor |
239 | 0 | } |
240 | | }; |
241 | | } // namespace binding_detail |
242 | | |
243 | | |
244 | | } // namespace dom |
245 | | } // namespace mozilla |
246 | | |
247 | | #endif // mozilla_dom_MediaTrackConstraintSetBinding_h |