| Index: modules/screen_orientation/ScreenOrientation.idl
|
| diff --git a/modules/screen_orientation/ScreenOrientation.idl b/modules/screen_orientation/ScreenOrientation.idl
|
| index 6fc0d5db2f9bb6705e435d9bb78df79f39c6a761..c1bf53283591034aee1019bd447c0c807e38ab7f 100644
|
| --- a/modules/screen_orientation/ScreenOrientation.idl
|
| +++ b/modules/screen_orientation/ScreenOrientation.idl
|
| @@ -2,14 +2,29 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +enum OrientationType {
|
| + "portrait-primary",
|
| + "portrait-secondary",
|
| + "landscape-primary",
|
| + "landscape-secondary"
|
| +};
|
| +
|
| +enum OrientationLockType {
|
| + "any",
|
| + "landscape",
|
| + "portrait",
|
| + "portrait-primary",
|
| + "portrait-secondary",
|
| + "landscape-primary",
|
| + "landscape-secondary"
|
| +};
|
| +
|
| [
|
| RuntimeEnabled=ScreenOrientation
|
| ] partial interface Screen {
|
| - readonly attribute DOMString orientation;
|
| + readonly attribute OrientationType orientation;
|
|
|
| - boolean lockOrientation(sequence<DOMString> orientations);
|
| - boolean lockOrientation(DOMString orientation);
|
| + [CallWith=ScriptState] Promise lockOrientation(OrientationLockType orientation);
|
|
|
| void unlockOrientation();
|
| - attribute EventHandler onorientationchange;
|
| };
|
|
|