Index: Source/modules/screen_orientation/ScreenOrientation.idl |
diff --git a/Source/modules/screen_orientation/ScreenOrientation.idl b/Source/modules/screen_orientation/ScreenOrientation.idl |
index 97a31dc6f1e88ca60e7dbfb89350b3c53460299c..998850d1ff3c84fb782841c8860e4aab34588c9a 100644 |
--- a/Source/modules/screen_orientation/ScreenOrientation.idl |
+++ b/Source/modules/screen_orientation/ScreenOrientation.idl |
@@ -9,12 +9,22 @@ enum OrientationType { |
"landscape-secondary" |
}; |
+enum OrientationLockType { |
+ "any", |
+ "landscape", |
+ "portrait", |
+ "portrait-primary", |
+ "portrait-secondary", |
+ "landscape-primary", |
+ "landscape-secondary" |
+}; |
+ |
[ |
RuntimeEnabled=ScreenOrientation |
] partial interface Screen { |
readonly attribute OrientationType orientation; |
- boolean lockOrientation(DOMString orientation); |
+ boolean lockOrientation(OrientationLockType orientation); |
void unlockOrientation(); |
attribute EventHandler onorientationchange; |