Bug 1750871 - run mochitest-remote on fission everywhere. r=releng-reviewers,aki
[gecko.git] / dom / base / PlacesEvent.cpp
blobc6773b658f7f90b49bbc922de326e89073ff7fd0
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/. */
7 #include "mozilla/dom/PlacesEvent.h"
9 namespace mozilla::dom {
11 NS_IMPL_CYCLE_COLLECTION_CLASS(PlacesEvent)
13 NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(PlacesEvent)
14 NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
15 NS_IMPL_CYCLE_COLLECTION_UNLINK_END
17 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(PlacesEvent)
18 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
20 NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(PlacesEvent)
21 NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER
22 NS_IMPL_CYCLE_COLLECTION_TRACE_END
24 NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(PlacesEvent, AddRef)
25 NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(PlacesEvent, Release)
27 already_AddRefed<PlacesEvent> PlacesEvent::Constructor(
28 const GlobalObject& aGlobal, PlacesEventType aType, ErrorResult& rv) {
29 RefPtr<PlacesEvent> event = new PlacesEvent(aType);
30 return event.forget();
33 nsISupports* PlacesEvent::GetParentObject() const { return nullptr; }
35 JSObject* PlacesEvent::WrapObject(JSContext* aCx,
36 JS::Handle<JSObject*> aGivenProto) {
37 return PlacesEvent_Binding::Wrap(aCx, this, aGivenProto);
40 } // namespace mozilla::dom