Backed out 2 changesets (bug 1539720) for causing caret related failures. CLOSED...
[gecko.git] / dom / gamepad / GamepadButton.cpp
blob3ee985af3c19c629af15b83f8c596b20b3345830
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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "mozilla/dom/GamepadButton.h"
8 #include "mozilla/dom/GamepadBinding.h"
10 namespace mozilla::dom {
12 NS_IMPL_CYCLE_COLLECTING_ADDREF(GamepadButton)
13 NS_IMPL_CYCLE_COLLECTING_RELEASE(GamepadButton)
15 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(GamepadButton)
16 NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
17 NS_INTERFACE_MAP_ENTRY(nsISupports)
18 NS_INTERFACE_MAP_END
20 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GamepadButton, mParent)
22 /* virtual */
23 JSObject* GamepadButton::WrapObject(JSContext* aCx,
24 JS::Handle<JSObject*> aGivenProto) {
25 return GamepadButton_Binding::Wrap(aCx, this, aGivenProto);
28 } // namespace mozilla::dom