tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

MIDIInputMap.cpp (993B)


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