1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 enum OrientationLockType {
16 enum OrientationType {
25 RuntimeEnabled=ScreenOrientation
26 ] interface ScreenOrientation : EventTarget {
27 [MeasureAs=ScreenOrientationAngle] readonly attribute unsigned short angle;
28 [MeasureAs=ScreenOrientationType] readonly attribute DOMString type;
30 [CallWith=ScriptState, MeasureAs=ScreenOrientationLock] Promise lock(OrientationLockType orientation);
31 [MeasureAs=ScreenOrientationUnlock] void unlock();
33 attribute EventHandler onchange;