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 readonly attribute unsigned short angle;
28 readonly attribute DOMString type;
30 [CallWith=ScriptState] Promise lock(OrientationLockType orientation);
33 attribute EventHandler onchange;