1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 et tw=78: */
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 "ScreenLuminance.h"
13 NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(ScreenLuminance
, AddRef
)
14 NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(ScreenLuminance
, Release
)
15 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ScreenLuminance
, mScreen
)
17 JSObject
* ScreenLuminance::WrapObject(JSContext
* aCx
,
18 JS::Handle
<JSObject
*> aGivenProto
) {
19 return ScreenLuminance_Binding::Wrap(aCx
, this, aGivenProto
);
23 } // namespace mozilla