Bug 1550519 - Show a translucent parent highlight when a subgrid is highlighted....
[gecko.git] / dom / base / ScreenLuminance.cpp
blob394a1830edff6a22b399eb24d439e6db2f39029b
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"
8 #include "nsScreen.h"
10 namespace mozilla {
11 namespace dom {
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);
22 } // namespace dom
23 } // namespace mozilla