1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/base/nsIDOMScreen.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIDOMEventTarget.idl" 1.10 + 1.11 +[scriptable, builtinclass, uuid(e732649a-4f78-4ded-abe1-dbdc36fd59d3)] 1.12 +interface nsIDOMScreen : nsIDOMEventTarget 1.13 +{ 1.14 + readonly attribute long top; 1.15 + readonly attribute long left; 1.16 + readonly attribute long width; 1.17 + readonly attribute long height; 1.18 + readonly attribute long pixelDepth; 1.19 + readonly attribute long colorDepth; 1.20 + readonly attribute long availWidth; 1.21 + readonly attribute long availHeight; 1.22 + readonly attribute long availLeft; 1.23 + readonly attribute long availTop; 1.24 + 1.25 + /** 1.26 + * Returns the current screen orientation. 1.27 + * Can be: landscape-primary, landscape-secondary, 1.28 + * portrait-primary or portrait-secondary. 1.29 + */ 1.30 + [binaryname(SlowMozOrientation)] 1.31 + readonly attribute DOMString mozOrientation; 1.32 +};