/work/obj-fuzz/dist/include/mozilla/dom/MIDIOptionsBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM MIDIOptions.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_MIDIOptionsBinding_h |
4 | | #define mozilla_dom_MIDIOptionsBinding_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 | | |
13 | | namespace mozilla { |
14 | | namespace dom { |
15 | | |
16 | | struct MIDIOptionsAtoms; |
17 | | struct NativePropertyHooks; |
18 | | class ProtoAndIfaceCache; |
19 | | |
20 | | } // namespace dom |
21 | | } // namespace mozilla |
22 | | |
23 | | namespace mozilla { |
24 | | namespace dom { |
25 | | |
26 | | struct MIDIOptions : public DictionaryBase |
27 | | { |
28 | | MOZ_INIT_OUTSIDE_CTOR bool mSoftware; |
29 | | MOZ_INIT_OUTSIDE_CTOR bool mSysex; |
30 | | |
31 | | MIDIOptions(); |
32 | | |
33 | | explicit inline MIDIOptions(const FastDictionaryInitializer& ) |
34 | 0 | { |
35 | 0 | // Do nothing here; this is used by our "Fast" subclass |
36 | 0 | } |
37 | | |
38 | | explicit inline MIDIOptions(const MIDIOptions& aOther) |
39 | 0 | { |
40 | 0 | *this = aOther; |
41 | 0 | } |
42 | | |
43 | | bool |
44 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
45 | | |
46 | | bool |
47 | | Init(const nsAString& aJSON); |
48 | | |
49 | | bool |
50 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
51 | | |
52 | | bool |
53 | | ToJSON(nsAString& aJSON) const; |
54 | | |
55 | | void |
56 | | TraceDictionary(JSTracer* trc); |
57 | | |
58 | | MIDIOptions& |
59 | | operator=(const MIDIOptions& aOther); |
60 | | |
61 | | private: |
62 | | static bool |
63 | | InitIds(JSContext* cx, MIDIOptionsAtoms* atomsCache); |
64 | | }; |
65 | | |
66 | | namespace binding_detail { |
67 | | struct FastMIDIOptions : public MIDIOptions |
68 | | { |
69 | | inline FastMIDIOptions() |
70 | | : MIDIOptions(FastDictionaryInitializer()) |
71 | 0 | { |
72 | 0 | // Doesn't matter what int we pass to the parent constructor |
73 | 0 | } |
74 | | }; |
75 | | } // namespace binding_detail |
76 | | |
77 | | |
78 | | } // namespace dom |
79 | | } // namespace mozilla |
80 | | |
81 | | #endif // mozilla_dom_MIDIOptionsBinding_h |