Bug 1551001 [wpt PR 16740] - Don't mark disconnected tree-scopes for style update...
[gecko.git] / widget / nsIScreenManager.idl
blobbba7ee6b24fe273d75511847751d4a1c702fdee9
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
8 #include "nsIScreen.idl"
10 [scriptable, uuid(e8a96e60-6b61-4a14-bacc-53891604b502)]
11 interface nsIScreenManager : nsISupports
14 // Returns the screen that contains the rectangle. If the rect overlaps
15 // multiple screens, it picks the screen with the greatest area of intersection.
17 // The coordinates are in pixels (not twips) and in screen coordinates.
19 nsIScreen screenForRect ( in long left, in long top, in long width, in long height ) ;
21 // The screen with the menubar/taskbar. This shouldn't be needed very
22 // often.
23 readonly attribute nsIScreen primaryScreen;