diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/screen_enumeration/global_screen_enumeration.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/screen_enumeration/global_screen_enumeration.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/screen_enumeration/global_screen_enumeration.h b/chromium/third_party/blink/renderer/modules/screen_enumeration/global_screen_enumeration.h new file mode 100644 index 00000000000..721de7f4705 --- /dev/null +++ b/chromium/third_party/blink/renderer/modules/screen_enumeration/global_screen_enumeration.h @@ -0,0 +1,31 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_SCREEN_ENUMERATION_GLOBAL_SCREEN_ENUMERATION_H_ +#define THIRD_PARTY_BLINK_RENDERER_MODULES_SCREEN_ENUMERATION_GLOBAL_SCREEN_ENUMERATION_H_ + +#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" + +namespace blink { + +class ExceptionState; +class LocalDOMWindow; +class ScriptPromise; +class ScriptState; + +// A proposed interface for querying the state of the device's screen space. +// https://github.com/webscreens/screen-enumeration +class GlobalScreenEnumeration { + STATIC_ONLY(GlobalScreenEnumeration); + + public: + // Resolves to the list of |Screen| objects in the device's screen space. + static ScriptPromise getScreens(ScriptState*, + LocalDOMWindow&, + ExceptionState&); +}; + +} // namespace blink + +#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_SCREEN_ENUMERATION_GLOBAL_SCREEN_ENUMERATION_H_ |