Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2095)

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.idl

Issue 204653002: Screen Orientation: use OrientationLockType enum for lockOrientation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@screen_orientation_type
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698