Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/base/PlacesEvent.cpp
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
#include "mozilla/dom/PlacesEvent.h"
8
9
#include "mozilla/HoldDropJSObjects.h"
10
11
namespace mozilla {
12
namespace dom {
13
14
NS_IMPL_CYCLE_COLLECTION_CLASS(PlacesEvent)
15
16
0
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(PlacesEvent)
17
0
  NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
18
0
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
19
20
0
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(PlacesEvent)
21
0
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
22
23
0
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(PlacesEvent)
24
0
  NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER
25
0
NS_IMPL_CYCLE_COLLECTION_TRACE_END
26
27
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(PlacesEvent, AddRef)
28
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(PlacesEvent, Release)
29
30
already_AddRefed<PlacesEvent>
31
PlacesEvent::Constructor(const GlobalObject& aGlobal,
32
                         PlacesEventType aType,
33
                         ErrorResult& rv)
34
0
{
35
0
  RefPtr<PlacesEvent> event = new PlacesEvent(aType);
36
0
  return event.forget();
37
0
}
38
39
nsISupports*
40
PlacesEvent::GetParentObject() const
41
0
{
42
0
  return nullptr;
43
0
}
44
45
JSObject*
46
PlacesEvent::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
47
0
{
48
0
  return PlacesEvent_Binding::Wrap(aCx, this, aGivenProto);
49
0
}
50
51
} // namespace dom
52
} // namespace mozilla