Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM IDBMutableFile.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_IDBMutableFileBinding_h
4 : #define mozilla_dom_IDBMutableFileBinding_h
5 :
6 : #include "FileModeBinding.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 :
13 : namespace mozilla {
14 : namespace dom {
15 :
16 : class IDBMutableFile;
17 : struct IDBMutableFileAtoms;
18 : struct NativePropertyHooks;
19 : class ProtoAndIfaceCache;
20 :
21 : } // namespace dom
22 : } // namespace mozilla
23 :
24 : namespace mozilla {
25 : namespace dom {
26 :
27 : namespace IDBMutableFileBinding {
28 :
29 : typedef mozilla::dom::IDBMutableFile NativeType;
30 :
31 : JSObject*
32 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
33 :
34 : const JSClass*
35 : GetJSClass();
36 :
37 : bool
38 : Wrap(JSContext* aCx, mozilla::dom::IDBMutableFile* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
39 :
40 : template <class T>
41 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
42 : {
43 0 : JS::Rooted<JSObject*> reflector(aCx);
44 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
45 : }
46 :
47 : // We declare this as an array so that retrieving a pointer to this
48 : // binding's property hooks only requires compile/link-time resolvable
49 : // address arithmetic. Declaring it as a pointer instead would require
50 : // doing a run-time load to fetch a pointer to this binding's property
51 : // hooks. And then structures which embedded a pointer to this structure
52 : // would require a run-time load for proper initialization, which would
53 : // then induce static constructors. Lots of static constructors.
54 : extern const NativePropertyHooks sNativePropertyHooks[];
55 :
56 : void
57 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
58 :
59 : JS::Handle<JSObject*>
60 : GetProtoObjectHandle(JSContext* aCx);
61 :
62 : JS::Handle<JSObject*>
63 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
64 :
65 : JSObject*
66 : GetConstructorObject(JSContext* aCx);
67 :
68 : } // namespace IDBMutableFileBinding
69 :
70 :
71 :
72 : } // namespace dom
73 : } // namespace mozilla
74 :
75 : #endif // mozilla_dom_IDBMutableFileBinding_h
|