Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/PlacesEvent.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_dom_PlacesEvent_h
8
#define mozilla_dom_PlacesEvent_h
9
10
#include "mozilla/dom/PlacesEventBinding.h"
11
#include "mozilla/ErrorResult.h"
12
#include "nsWrapperCache.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class PlacesEvent : public nsWrapperCache
18
{
19
public:
20
  explicit PlacesEvent(PlacesEventType aType)
21
    : mType(aType)
22
0
  {}
23
24
  static already_AddRefed<PlacesEvent>
25
  Constructor(const GlobalObject& aGlobal,
26
              PlacesEventType aType,
27
              ErrorResult& aRv);
28
29
  NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(PlacesEvent)
30
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(PlacesEvent)
31
32
  nsISupports* GetParentObject() const;
33
34
  JSObject*
35
  WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
36
37
0
  PlacesEventType Type() const { return mType; }
38
39
0
  virtual const PlacesVisit* AsPlacesVisit() const { return nullptr; }
40
protected:
41
  virtual ~PlacesEvent() = default;
42
  PlacesEventType mType;
43
};
44
45
} // namespace dom
46
} // namespace mozilla
47
48
#endif // mozilla_dom_PlacesEvent_h