nsIDOMScreen.idl 1.1 KB

123456789101112131415161718192021222324252627282930
  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/. */
  5. #include "nsIDOMEventTarget.idl"
  6. [builtinclass, uuid(82c7924b-4b46-4e5a-a8d2-6edb5fc0a60d)]
  7. interface nsIDOMScreen : nsIDOMEventTarget
  8. {
  9. readonly attribute long top;
  10. readonly attribute long left;
  11. readonly attribute long width;
  12. readonly attribute long height;
  13. readonly attribute long pixelDepth;
  14. readonly attribute long colorDepth;
  15. readonly attribute long availWidth;
  16. readonly attribute long availHeight;
  17. readonly attribute long availLeft;
  18. readonly attribute long availTop;
  19. /**
  20. * Returns the current screen orientation.
  21. * Can be: landscape-primary, landscape-secondary,
  22. * portrait-primary or portrait-secondary.
  23. */
  24. [binaryname(SlowMozOrientation)]
  25. readonly attribute DOMString mozOrientation;
  26. };