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