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
,
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
,
30 return notification
.forget();
33 } // namespace mozilla::dom