dom/webidl/Screen.webidl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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();
    52 };

mercurial