Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/AppNotificationServiceOptionsBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM AppNotificationServiceOptions.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_AppNotificationServiceOptionsBinding_h
4
#define mozilla_dom_AppNotificationServiceOptionsBinding_h
5
6
#include "GeckoProfiler.h"
7
#include "NotificationBinding.h"
8
#include "js/RootingAPI.h"
9
#include "jspubtd.h"
10
#include "mozilla/ErrorResult.h"
11
#include "mozilla/dom/BindingDeclarations.h"
12
#include "mozilla/dom/Nullable.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
struct AppNotificationServiceOptionsAtoms;
18
struct NativePropertyHooks;
19
struct NotificationBehavior;
20
class ProtoAndIfaceCache;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
struct AppNotificationServiceOptions : public DictionaryBase
29
{
30
  MOZ_INIT_OUTSIDE_CTOR nsString mData;
31
  MOZ_INIT_OUTSIDE_CTOR nsString mDbId;
32
  MOZ_INIT_OUTSIDE_CTOR nsString mDir;
33
  MOZ_INIT_OUTSIDE_CTOR nsString mId;
34
  MOZ_INIT_OUTSIDE_CTOR nsString mLang;
35
  MOZ_INIT_OUTSIDE_CTOR nsString mManifestURL;
36
  MOZ_INIT_OUTSIDE_CTOR NotificationBehavior mMozbehavior;
37
  MOZ_INIT_OUTSIDE_CTOR nsString mTag;
38
  MOZ_INIT_OUTSIDE_CTOR bool mTextClickable;
39
40
  AppNotificationServiceOptions();
41
42
  explicit inline AppNotificationServiceOptions(const FastDictionaryInitializer& )
43
    : mMozbehavior(FastDictionaryInitializer())
44
0
  {
45
0
    // Do nothing here; this is used by our "Fast" subclass
46
0
  }
47
48
  explicit inline AppNotificationServiceOptions(const AppNotificationServiceOptions& aOther)
49
    : mMozbehavior(FastDictionaryInitializer())
50
0
  {
51
0
    *this = aOther;
52
0
  }
53
54
  bool
55
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
56
57
  bool
58
  Init(const nsAString& aJSON);
59
60
  bool
61
  ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
62
63
  bool
64
  ToJSON(nsAString& aJSON) const;
65
66
  void
67
  TraceDictionary(JSTracer* trc);
68
69
  AppNotificationServiceOptions&
70
  operator=(const AppNotificationServiceOptions& aOther);
71
72
private:
73
  static bool
74
  InitIds(JSContext* cx, AppNotificationServiceOptionsAtoms* atomsCache);
75
};
76
77
namespace binding_detail {
78
struct FastAppNotificationServiceOptions : public AppNotificationServiceOptions
79
{
80
  inline FastAppNotificationServiceOptions()
81
    : AppNotificationServiceOptions(FastDictionaryInitializer())
82
0
  {
83
0
    // Doesn't matter what int we pass to the parent constructor
84
0
  }
85
};
86
} // namespace binding_detail
87
88
89
} // namespace dom
90
} // namespace mozilla
91
92
#endif // mozilla_dom_AppNotificationServiceOptionsBinding_h