Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGGraphicsElement.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_SVGGraphicsElementBinding_h
4 : #define mozilla_dom_SVGGraphicsElementBinding_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 SVGBoundingBoxOptionsAtoms;
18 : class SVGGraphicsElement;
19 : struct SVGGraphicsElementAtoms;
20 :
21 : } // namespace dom
22 : } // namespace mozilla
23 :
24 : namespace mozilla {
25 : namespace dom {
26 :
27 : struct SVGBoundingBoxOptions : public DictionaryBase
28 : {
29 : MOZ_INIT_OUTSIDE_CTOR bool mClipped;
30 : MOZ_INIT_OUTSIDE_CTOR bool mFill;
31 : MOZ_INIT_OUTSIDE_CTOR bool mMarkers;
32 : MOZ_INIT_OUTSIDE_CTOR bool mStroke;
33 :
34 : SVGBoundingBoxOptions();
35 :
36 0 : explicit inline SVGBoundingBoxOptions(const FastDictionaryInitializer& )
37 0 : {
38 : // Do nothing here; this is used by our "Fast" subclass
39 0 : }
40 :
41 : explicit inline SVGBoundingBoxOptions(const SVGBoundingBoxOptions& aOther)
42 : {
43 : *this = aOther;
44 : }
45 :
46 : bool
47 : Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
48 :
49 : bool
50 : Init(const nsAString& aJSON);
51 :
52 : bool
53 : ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
54 :
55 : bool
56 : ToJSON(nsAString& aJSON) const;
57 :
58 : void
59 : TraceDictionary(JSTracer* trc);
60 :
61 : SVGBoundingBoxOptions&
62 : operator=(const SVGBoundingBoxOptions& aOther);
63 :
64 : private:
65 : static bool
66 : InitIds(JSContext* cx, SVGBoundingBoxOptionsAtoms* atomsCache);
67 : };
68 :
69 : namespace binding_detail {
70 : struct FastSVGBoundingBoxOptions : public SVGBoundingBoxOptions
71 : {
72 0 : inline FastSVGBoundingBoxOptions()
73 0 : : SVGBoundingBoxOptions(FastDictionaryInitializer())
74 : {
75 : // Doesn't matter what int we pass to the parent constructor
76 0 : }
77 : };
78 : } // namespace binding_detail
79 :
80 :
81 : namespace SVGGraphicsElementBinding {
82 :
83 : typedef mozilla::dom::SVGGraphicsElement NativeType;
84 :
85 : JSObject*
86 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
87 :
88 : // We declare this as an array so that retrieving a pointer to this
89 : // binding's property hooks only requires compile/link-time resolvable
90 : // address arithmetic. Declaring it as a pointer instead would require
91 : // doing a run-time load to fetch a pointer to this binding's property
92 : // hooks. And then structures which embedded a pointer to this structure
93 : // would require a run-time load for proper initialization, which would
94 : // then induce static constructors. Lots of static constructors.
95 : extern const NativePropertyHooks sNativePropertyHooks[];
96 :
97 : void
98 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
99 :
100 : JS::Handle<JSObject*>
101 : GetProtoObjectHandle(JSContext* aCx);
102 :
103 : JSObject*
104 : GetProtoObject(JSContext* aCx);
105 :
106 : JS::Handle<JSObject*>
107 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
108 :
109 : JSObject*
110 : GetConstructorObject(JSContext* aCx);
111 :
112 : } // namespace SVGGraphicsElementBinding
113 :
114 :
115 :
116 : } // namespace dom
117 : } // namespace mozilla
118 :
119 : #endif // mozilla_dom_SVGGraphicsElementBinding_h
|