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