/work/obj-fuzz/dist/include/mozilla/dom/SVGComponentTransferFunctionElementBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM SVGComponentTransferFunctionElement.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_SVGComponentTransferFunctionElementBinding_h |
4 | | #define mozilla_dom_SVGComponentTransferFunctionElementBinding_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/PrototypeList.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | struct NativePropertyHooks; |
18 | | class ProtoAndIfaceCache; |
19 | | class SVGComponentTransferFunctionElement; |
20 | | struct SVGComponentTransferFunctionElementAtoms; |
21 | | |
22 | | } // namespace dom |
23 | | } // namespace mozilla |
24 | | |
25 | | namespace mozilla { |
26 | | namespace dom { |
27 | | |
28 | | namespace SVGComponentTransferFunctionElement_Binding { |
29 | | |
30 | | typedef mozilla::dom::SVGComponentTransferFunctionElement NativeType; |
31 | | |
32 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
33 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; |
34 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; |
35 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
36 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; |
37 | | static const uint16_t SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; |
38 | | // We declare this as an array so that retrieving a pointer to this |
39 | | // binding's property hooks only requires compile/link-time resolvable |
40 | | // address arithmetic. Declaring it as a pointer instead would require |
41 | | // doing a run-time load to fetch a pointer to this binding's property |
42 | | // hooks. And then structures which embedded a pointer to this structure |
43 | | // would require a run-time load for proper initialization, which would |
44 | | // then induce static constructors. Lots of static constructors. |
45 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
46 | | |
47 | | void |
48 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
49 | | |
50 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
51 | 0 | { |
52 | 0 | /* Get the interface prototype object for this class. This will create the |
53 | 0 | object as needed. */ |
54 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGComponentTransferFunctionElement, |
55 | 0 | &CreateInterfaceObjects, |
56 | 0 | /* aDefineOnGlobal = */ true); |
57 | 0 |
|
58 | 0 | } |
59 | | |
60 | | JSObject* |
61 | | GetProtoObject(JSContext* aCx); |
62 | | |
63 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
64 | 0 | { |
65 | 0 | /* Get the interface object for this class. This will create the object as |
66 | 0 | needed. */ |
67 | 0 |
|
68 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::SVGComponentTransferFunctionElement, |
69 | 0 | &CreateInterfaceObjects, |
70 | 0 | aDefineOnGlobal); |
71 | 0 | } |
72 | | |
73 | | JSObject* |
74 | | GetConstructorObject(JSContext* aCx); |
75 | | |
76 | | } // namespace SVGComponentTransferFunctionElement_Binding |
77 | | |
78 | | |
79 | | |
80 | | } // namespace dom |
81 | | } // namespace mozilla |
82 | | |
83 | | #endif // mozilla_dom_SVGComponentTransferFunctionElementBinding_h |