Bug 1890277: part 2) Add `require-trusted-types-for` directive to CSP parser, guarded...
[gecko.git] / dom / base / ScreenLuminance.cpp
blob54c329b5aaaf996fca28a295180052d27afa21ff
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::dom {
12 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ScreenLuminance, mScreen)
14 JSObject* ScreenLuminance::WrapObject(JSContext* aCx,
15 JS::Handle<JSObject*> aGivenProto) {
16 return ScreenLuminance_Binding::Wrap(aCx, this, aGivenProto);
19 } // namespace mozilla::dom