blob: 871a4ce9a8d86069ace076bdc42187764ca90813 [file] [log] [blame]
// 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.
// https://github.com/webscreens/window-placement
[
SecureContext,
RuntimeEnabled=WindowPlacement,
ImplementedAs=GlobalScreenEnumeration
] partial interface Window {
[CallWith=ScriptState, Measure, RaisesException]
Promise<sequence<Screen>> getScreens();
[CallWith=ScriptState, Measure, RaisesException]
Promise<boolean> isMultiScreen();
[Measure] attribute EventHandler onscreenschange;
};