/work/obj-fuzz/dist/include/mozilla/dom/AnimatableBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM Animatable.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_AnimatableBinding_h |
4 | | #define mozilla_dom_AnimatableBinding_h |
5 | | |
6 | | #include "AnimationEffectBinding.h" |
7 | | #include "BaseKeyframeTypesBinding.h" |
8 | | #include "GeckoProfiler.h" |
9 | | #include "KeyframeEffectBinding.h" |
10 | | #include "js/RootingAPI.h" |
11 | | #include "jspubtd.h" |
12 | | #include "mozilla/ErrorResult.h" |
13 | | #include "mozilla/dom/BindingDeclarations.h" |
14 | | #include "mozilla/dom/Nullable.h" |
15 | | #include "mozilla/dom/UnionTypes.h" |
16 | | |
17 | | namespace mozilla { |
18 | | namespace dom { |
19 | | |
20 | | struct AnimationFilterAtoms; |
21 | | struct KeyframeAnimationOptionsAtoms; |
22 | | struct NativePropertyHooks; |
23 | | class OwningUnrestrictedDoubleOrString; |
24 | | class ProtoAndIfaceCache; |
25 | | class UnrestrictedDoubleOrString; |
26 | | |
27 | | } // namespace dom |
28 | | } // namespace mozilla |
29 | | |
30 | | namespace mozilla { |
31 | | namespace dom { |
32 | | |
33 | | struct AnimationFilter : public DictionaryBase |
34 | | { |
35 | | MOZ_INIT_OUTSIDE_CTOR bool mSubtree; |
36 | | |
37 | | AnimationFilter(); |
38 | | |
39 | | explicit inline AnimationFilter(const FastDictionaryInitializer& ) |
40 | 0 | { |
41 | 0 | // Do nothing here; this is used by our "Fast" subclass |
42 | 0 | } |
43 | | |
44 | | explicit inline AnimationFilter(const AnimationFilter& 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 | | AnimationFilter& |
65 | | operator=(const AnimationFilter& aOther); |
66 | | |
67 | | private: |
68 | | static bool |
69 | | InitIds(JSContext* cx, AnimationFilterAtoms* atomsCache); |
70 | | }; |
71 | | |
72 | | namespace binding_detail { |
73 | | struct FastAnimationFilter : public AnimationFilter |
74 | | { |
75 | | inline FastAnimationFilter() |
76 | | : AnimationFilter(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 KeyframeAnimationOptions : public KeyframeEffectOptions |
85 | | { |
86 | | MOZ_INIT_OUTSIDE_CTOR nsString mId; |
87 | | |
88 | | KeyframeAnimationOptions(); |
89 | | |
90 | | explicit inline KeyframeAnimationOptions(const FastDictionaryInitializer& ) |
91 | | : KeyframeEffectOptions(FastDictionaryInitializer()) |
92 | 0 | { |
93 | 0 | // Do nothing here; this is used by our "Fast" subclass |
94 | 0 | } |
95 | | |
96 | | explicit inline KeyframeAnimationOptions(const KeyframeAnimationOptions& 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 | | KeyframeAnimationOptions& |
117 | | operator=(const KeyframeAnimationOptions& aOther); |
118 | | |
119 | | private: |
120 | | static bool |
121 | | InitIds(JSContext* cx, KeyframeAnimationOptionsAtoms* atomsCache); |
122 | | }; |
123 | | |
124 | | namespace binding_detail { |
125 | | struct FastKeyframeAnimationOptions : public KeyframeAnimationOptions |
126 | | { |
127 | | inline FastKeyframeAnimationOptions() |
128 | | : KeyframeAnimationOptions(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 | | } // namespace dom |
137 | | } // namespace mozilla |
138 | | |
139 | | #endif // mozilla_dom_AnimatableBinding_h |