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/. */
6 
7 #include "CallbackDebuggerNotification.h"
8 
9 namespace mozilla::dom {
10 
NS_IMPL_CYCLE_COLLECTION_INHERITED(CallbackDebuggerNotification,DebuggerNotification)11 NS_IMPL_CYCLE_COLLECTION_INHERITED(CallbackDebuggerNotification,
12                                    DebuggerNotification)
13 
14 NS_IMPL_ADDREF_INHERITED(CallbackDebuggerNotification, DebuggerNotification)
15 NS_IMPL_RELEASE_INHERITED(CallbackDebuggerNotification, DebuggerNotification)
16 
17 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(CallbackDebuggerNotification)
18 NS_INTERFACE_MAP_END_INHERITING(DebuggerNotification)
19 
20 JSObject* CallbackDebuggerNotification::WrapObject(
21     JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
22   return CallbackDebuggerNotification_Binding::Wrap(aCx, this, aGivenProto);
23 }
24 
CloneInto(nsIGlobalObject * aNewOwner) const25 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();
31 }
32 
33 }  // namespace mozilla::dom
34