Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/FileReaderSyncBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM FileReaderSync.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_FileReaderSyncBinding_h
4
#define mozilla_dom_FileReaderSyncBinding_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
class FileReaderSync;
18
struct FileReaderSyncAtoms;
19
struct NativePropertyHooks;
20
class ProtoAndIfaceCache;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
namespace FileReaderSync_Binding {
29
30
  typedef mozilla::dom::FileReaderSync NativeType;
31
32
  bool
33
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
34
35
  const JSClass*
36
  GetJSClass();
37
38
  bool
39
  Wrap(JSContext* aCx, mozilla::dom::FileReaderSync* aObject, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
40
41
  void
42
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
43
44
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
45
0
  {
46
0
    /* Get the interface prototype object for this class.  This will create the
47
0
       object as needed. */
48
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::FileReaderSync,
49
0
                                       &CreateInterfaceObjects,
50
0
                                       /* aDefineOnGlobal = */ true);
51
0
52
0
  }
53
54
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
55
0
  {
56
0
    /* Get the interface object for this class.  This will create the object as
57
0
       needed. */
58
0
59
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::FileReaderSync,
60
0
                                       &CreateInterfaceObjects,
61
0
                                       aDefineOnGlobal);
62
0
  }
63
64
  JSObject*
65
  GetConstructorObject(JSContext* aCx);
66
67
} // namespace FileReaderSync_Binding
68
69
70
71
} // namespace dom
72
} // namespace mozilla
73
74
#endif // mozilla_dom_FileReaderSyncBinding_h