Bug 1856777 [wpt PR 42330] - Update wpt metadata, a=testonly
[gecko.git] / dom / debugger / CallbackDebuggerNotification.cpp
blob73a3837163552669d257c4b6c8e184bb097f307f
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "CallbackDebuggerNotification.h"
9 namespace mozilla::dom {
11 NS_IMPL_CYCLE_COLLECTION_INHERITED(CallbackDebuggerNotification,
12 DebuggerNotification)
14 NS_IMPL_ADDREF_INHERITED(CallbackDebuggerNotification, DebuggerNotification)
15 NS_IMPL_RELEASE_INHERITED(CallbackDebuggerNotification, DebuggerNotification)
17 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(CallbackDebuggerNotification)
18 NS_INTERFACE_MAP_END_INHERITING(DebuggerNotification)
20 JSObject* CallbackDebuggerNotification::WrapObject(
21 JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
22 return CallbackDebuggerNotification_Binding::Wrap(aCx, this, aGivenProto);
25 already_AddRefed<DebuggerNotification> CallbackDebuggerNotification::CloneInto(
26 nsIGlobalObject* aNewOwner) const {
27 RefPtr<CallbackDebuggerNotification> notification(
28 new CallbackDebuggerNotification(mDebuggeeGlobal, mType, mPhase,
29 aNewOwner));
30 return notification.forget();
33 } // namespace mozilla::dom