Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/AutocompleteInfoBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM AutocompleteInfo.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_AutocompleteInfoBinding_h
4
#define mozilla_dom_AutocompleteInfoBinding_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
13
namespace mozilla {
14
namespace dom {
15
16
struct AutocompleteInfoAtoms;
17
struct NativePropertyHooks;
18
class ProtoAndIfaceCache;
19
20
} // namespace dom
21
} // namespace mozilla
22
23
namespace mozilla {
24
namespace dom {
25
26
struct AutocompleteInfo : public DictionaryBase
27
{
28
  MOZ_INIT_OUTSIDE_CTOR nsString mAddressType;
29
  MOZ_INIT_OUTSIDE_CTOR nsString mContactType;
30
  MOZ_INIT_OUTSIDE_CTOR nsString mFieldName;
31
  MOZ_INIT_OUTSIDE_CTOR nsString mSection;
32
33
  AutocompleteInfo();
34
35
  explicit inline AutocompleteInfo(const FastDictionaryInitializer& )
36
0
  {
37
0
    // Do nothing here; this is used by our "Fast" subclass
38
0
  }
39
40
  explicit inline AutocompleteInfo(const AutocompleteInfo& aOther)
41
0
  {
42
0
    *this = aOther;
43
0
  }
44
45
  bool
46
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
47
48
  bool
49
  Init(const nsAString& aJSON);
50
51
  bool
52
  ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
53
54
  bool
55
  ToJSON(nsAString& aJSON) const;
56
57
  void
58
  TraceDictionary(JSTracer* trc);
59
60
  AutocompleteInfo&
61
  operator=(const AutocompleteInfo& aOther);
62
63
private:
64
  static bool
65
  InitIds(JSContext* cx, AutocompleteInfoAtoms* atomsCache);
66
};
67
68
namespace binding_detail {
69
struct FastAutocompleteInfo : public AutocompleteInfo
70
{
71
  inline FastAutocompleteInfo()
72
    : AutocompleteInfo(FastDictionaryInitializer())
73
0
  {
74
0
    // Doesn't matter what int we pass to the parent constructor
75
0
  }
76
};
77
} // namespace binding_detail
78
79
80
} // namespace dom
81
} // namespace mozilla
82
83
#endif // mozilla_dom_AutocompleteInfoBinding_h