MIDIOutputMap.cpp (1004B)
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/. */ 4 5 #include "mozilla/dom/MIDIOutputMap.h" 6 7 #include "mozilla/dom/BindingUtils.h" 8 #include "mozilla/dom/MIDIOutputMapBinding.h" 9 #include "nsPIDOMWindow.h" 10 11 namespace mozilla::dom { 12 13 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(MIDIOutputMap, mPorts, mParent) 14 15 NS_IMPL_CYCLE_COLLECTING_ADDREF(MIDIOutputMap) 16 NS_IMPL_CYCLE_COLLECTING_RELEASE(MIDIOutputMap) 17 18 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MIDIOutputMap) 19 NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY 20 NS_INTERFACE_MAP_ENTRY(nsISupports) 21 NS_INTERFACE_MAP_END 22 23 MIDIOutputMap::MIDIOutputMap(nsPIDOMWindowInner* aParent) : mParent(aParent) {} 24 25 JSObject* MIDIOutputMap::WrapObject(JSContext* aCx, 26 JS::Handle<JSObject*> aGivenProto) { 27 return MIDIOutputMap_Binding::Wrap(aCx, this, aGivenProto); 28 } 29 30 } // namespace mozilla::dom