Bug 1776444 [wpt PR 34582] - Revert "Add TimedHTMLParserBudget to fieldtrial_testing_...
[gecko.git] / dom / midi / MIDIOutputMap.cpp
blobd7840827f2da4dd0a571b9b369b91650df10e62d
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "mozilla/dom/MIDIOutputMap.h"
6 #include "mozilla/dom/MIDIOutputMapBinding.h"
7 #include "nsPIDOMWindow.h"
8 #include "mozilla/dom/BindingUtils.h"
10 namespace mozilla::dom {
12 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(MIDIOutputMap, mParent)
14 NS_IMPL_CYCLE_COLLECTING_ADDREF(MIDIOutputMap)
15 NS_IMPL_CYCLE_COLLECTING_RELEASE(MIDIOutputMap)
17 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MIDIOutputMap)
18 NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
19 NS_INTERFACE_MAP_ENTRY(nsISupports)
20 NS_INTERFACE_MAP_END
22 MIDIOutputMap::MIDIOutputMap(nsPIDOMWindowInner* aParent) : mParent(aParent) {}
24 JSObject* MIDIOutputMap::WrapObject(JSContext* aCx,
25 JS::Handle<JSObject*> aGivenProto) {
26 return MIDIOutputMap_Binding::Wrap(aCx, this, aGivenProto);
29 } // namespace mozilla::dom