dom/midi/MIDIOutputMap.cpp
author Noemi Erli <nerli@mozilla.com>
Thu, 24 May 2018 18:30:36 +0300
changeset 476428 fae06a27c30119754a4522f9ec21d254d34cfc80
parent 460149 63de8ef246cc1d306ae4825ba3eda458def0572f
child 481599 a97feb8161b7a4c60a539d83cb702a6e50fab1b1
permissions -rw-r--r--
Backed out changeset c19f0dedfb15 (bug 1463794) for reftest failures in build/tests/reftest/tests/layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html on a CLOSED TREE

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "mozilla/dom/MIDIOutputMap.h"
#include "mozilla/dom/MIDIOutputMapBinding.h"
#include "nsPIDOMWindow.h"
#include "mozilla/dom/BindingUtils.h"

namespace mozilla {
namespace dom {

NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(MIDIOutputMap, mParent)

NS_IMPL_CYCLE_COLLECTING_ADDREF(MIDIOutputMap)
NS_IMPL_CYCLE_COLLECTING_RELEASE(MIDIOutputMap)

NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MIDIOutputMap)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END

MIDIOutputMap::MIDIOutputMap(nsPIDOMWindowInner* aParent) :
  mParent(aParent)
{
}

JSObject*
MIDIOutputMap::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
  return MIDIOutputMapBinding::Wrap(aCx, this, aGivenProto);
}

} // namespace dom
} // namespace mozilla