Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / Screen.webidl
blobca880f73fefb16881c369f372cb780e75348b9b8
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 interface Screen : EventTarget {
7   // CSSOM-View
8   // http://dev.w3.org/csswg/cssom-view/#the-screen-interface
9   [Throws]
10   readonly attribute long availWidth;
11   [Throws]
12   readonly attribute long availHeight;
13   [Throws]
14   readonly attribute long width;
15   [Throws]
16   readonly attribute long height;
17   [Throws]
18   readonly attribute long colorDepth;
19   [Throws]
20   readonly attribute long pixelDepth;
22   [Throws]
23   readonly attribute long top;
24   [Throws]
25   readonly attribute long left;
26   [Throws]
27   readonly attribute long availTop;
28   [Throws]
29   readonly attribute long availLeft;
31   /**
32    * Returns the current screen orientation.
33    * Can be: landscape-primary, landscape-secondary,
34    *         portrait-primary or portrait-secondary.
35    */
36   readonly attribute DOMString mozOrientation;
38   attribute EventHandler onmozorientationchange;
40   /**
41    * Lock screen orientation to the specified type.
42    */
43   [Throws]
44   boolean mozLockOrientation(DOMString orientation);
45   [Throws]
46   boolean mozLockOrientation(sequence<DOMString> orientation);
48   /**
49    * Unlock the screen orientation.
50    */
51   void mozUnlockOrientation();