Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/BrowserElementDictionariesBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM BrowserElementDictionaries.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_BrowserElementDictionariesBinding_h
4
#define mozilla_dom_BrowserElementDictionariesBinding_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 "nsINode.h"
13
14
class nsINode;
15
16
namespace mozilla {
17
namespace dom {
18
19
struct DOMWindowResizeEventDetailAtoms;
20
struct NativePropertyHooks;
21
struct OpenWindowEventDetailAtoms;
22
class ProtoAndIfaceCache;
23
24
} // namespace dom
25
} // namespace mozilla
26
27
namespace mozilla {
28
namespace dom {
29
30
struct DOMWindowResizeEventDetail : public DictionaryBase
31
{
32
  MOZ_INIT_OUTSIDE_CTOR int32_t mHeight;
33
  MOZ_INIT_OUTSIDE_CTOR int32_t mWidth;
34
35
  DOMWindowResizeEventDetail();
36
37
  explicit inline DOMWindowResizeEventDetail(const FastDictionaryInitializer& )
38
0
  {
39
0
    // Do nothing here; this is used by our "Fast" subclass
40
0
  }
41
42
  explicit inline DOMWindowResizeEventDetail(const DOMWindowResizeEventDetail& aOther)
43
0
  {
44
0
    *this = aOther;
45
0
  }
46
47
  bool
48
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
49
50
  bool
51
  Init(const nsAString& aJSON);
52
53
  bool
54
  ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
55
56
  bool
57
  ToJSON(nsAString& aJSON) const;
58
59
  void
60
  TraceDictionary(JSTracer* trc);
61
62
  DOMWindowResizeEventDetail&
63
  operator=(const DOMWindowResizeEventDetail& aOther);
64
65
private:
66
  static bool
67
  InitIds(JSContext* cx, DOMWindowResizeEventDetailAtoms* atomsCache);
68
};
69
70
namespace binding_detail {
71
struct FastDOMWindowResizeEventDetail : public DOMWindowResizeEventDetail
72
{
73
  inline FastDOMWindowResizeEventDetail()
74
    : DOMWindowResizeEventDetail(FastDictionaryInitializer())
75
0
  {
76
0
    // Doesn't matter what int we pass to the parent constructor
77
0
  }
78
};
79
} // namespace binding_detail
80
81
82
struct OpenWindowEventDetail : public DictionaryBase
83
{
84
  MOZ_INIT_OUTSIDE_CTOR nsString mFeatures;
85
  MOZ_INIT_OUTSIDE_CTOR RefPtr<nsINode> mFrameElement;
86
  MOZ_INIT_OUTSIDE_CTOR nsString mName;
87
  MOZ_INIT_OUTSIDE_CTOR nsString mUrl;
88
89
  OpenWindowEventDetail();
90
91
  explicit inline OpenWindowEventDetail(const FastDictionaryInitializer& )
92
0
  {
93
0
    // Do nothing here; this is used by our "Fast" subclass
94
0
  }
95
96
  explicit inline OpenWindowEventDetail(const OpenWindowEventDetail& aOther)
97
0
  {
98
0
    *this = aOther;
99
0
  }
100
101
  bool
102
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
103
104
  bool
105
  ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
106
107
  void
108
  TraceDictionary(JSTracer* trc);
109
110
  inline void
111
  TraverseForCC(nsCycleCollectionTraversalCallback& aCallback, uint32_t aFlags)
112
0
  {
113
0
    ImplCycleCollectionTraverse(aCallback, mFrameElement, "mFrameElement", aFlags);
114
0
  }
115
116
  inline void
117
  UnlinkForCC()
118
0
  {
119
0
    ImplCycleCollectionUnlink(mFrameElement);
120
0
  }
121
122
  OpenWindowEventDetail&
123
  operator=(const OpenWindowEventDetail& aOther);
124
125
private:
126
  static bool
127
  InitIds(JSContext* cx, OpenWindowEventDetailAtoms* atomsCache);
128
};
129
130
namespace binding_detail {
131
struct FastOpenWindowEventDetail : public OpenWindowEventDetail
132
{
133
  inline FastOpenWindowEventDetail()
134
    : OpenWindowEventDetail(FastDictionaryInitializer())
135
0
  {
136
0
    // Doesn't matter what int we pass to the parent constructor
137
0
  }
138
};
139
} // namespace binding_detail
140
141
142
} // namespace dom
143
} // namespace mozilla
144
145
#endif // mozilla_dom_BrowserElementDictionariesBinding_h