/work/obj-fuzz/dist/include/mozilla/dom/MediaKeysRequestStatusBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM MediaKeysRequestStatus.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_MediaKeysRequestStatusBinding_h |
4 | | #define mozilla_dom_MediaKeysRequestStatusBinding_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 NativePropertyHooks; |
17 | | class ProtoAndIfaceCache; |
18 | | struct RequestMediaKeySystemAccessNotificationAtoms; |
19 | | |
20 | | } // namespace dom |
21 | | } // namespace mozilla |
22 | | |
23 | | namespace mozilla { |
24 | | namespace dom { |
25 | | |
26 | | enum class MediaKeySystemStatus : uint8_t { |
27 | | Available, |
28 | | Api_disabled, |
29 | | Cdm_disabled, |
30 | | Cdm_not_supported, |
31 | | Cdm_not_installed, |
32 | | Cdm_created, |
33 | | EndGuard_ |
34 | | }; |
35 | | |
36 | | namespace MediaKeySystemStatusValues { |
37 | | extern const EnumEntry strings[7]; |
38 | | } // namespace MediaKeySystemStatusValues |
39 | | |
40 | | bool |
41 | | ToJSValue(JSContext* aCx, MediaKeySystemStatus aArgument, JS::MutableHandle<JS::Value> aValue); |
42 | | |
43 | | |
44 | | struct RequestMediaKeySystemAccessNotification : public DictionaryBase |
45 | | { |
46 | | MOZ_INIT_OUTSIDE_CTOR nsString mKeySystem; |
47 | | MOZ_INIT_OUTSIDE_CTOR MediaKeySystemStatus mStatus; |
48 | | |
49 | | RequestMediaKeySystemAccessNotification(); |
50 | | |
51 | | explicit inline RequestMediaKeySystemAccessNotification(const FastDictionaryInitializer& ) |
52 | 0 | { |
53 | 0 | // Do nothing here; this is used by our "Fast" subclass |
54 | 0 | } |
55 | | |
56 | | explicit inline RequestMediaKeySystemAccessNotification(const RequestMediaKeySystemAccessNotification& aOther) |
57 | 0 | { |
58 | 0 | *this = aOther; |
59 | 0 | } |
60 | | |
61 | | bool |
62 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
63 | | |
64 | | bool |
65 | | Init(const nsAString& aJSON); |
66 | | |
67 | | bool |
68 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
69 | | |
70 | | bool |
71 | | ToJSON(nsAString& aJSON) const; |
72 | | |
73 | | void |
74 | | TraceDictionary(JSTracer* trc); |
75 | | |
76 | | RequestMediaKeySystemAccessNotification& |
77 | | operator=(const RequestMediaKeySystemAccessNotification& aOther); |
78 | | |
79 | | private: |
80 | | static bool |
81 | | InitIds(JSContext* cx, RequestMediaKeySystemAccessNotificationAtoms* atomsCache); |
82 | | }; |
83 | | |
84 | | namespace binding_detail { |
85 | | struct FastRequestMediaKeySystemAccessNotification : public RequestMediaKeySystemAccessNotification |
86 | | { |
87 | | inline FastRequestMediaKeySystemAccessNotification() |
88 | | : RequestMediaKeySystemAccessNotification(FastDictionaryInitializer()) |
89 | 0 | { |
90 | 0 | // Doesn't matter what int we pass to the parent constructor |
91 | 0 | } |
92 | | }; |
93 | | } // namespace binding_detail |
94 | | |
95 | | |
96 | | } // namespace dom |
97 | | } // namespace mozilla |
98 | | |
99 | | #endif // mozilla_dom_MediaKeysRequestStatusBinding_h |