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

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

Issue 207833003: Update screen.orientation to follow the latest version of the specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@partial_enum_callback
Patch Set: ... and mac expected results 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 ef6cc8c31c71c56f939a327fad14d12fe084f1e1..97a31dc6f1e88ca60e7dbfb89350b3c53460299c 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.idl
+++ b/Source/modules/screen_orientation/ScreenOrientation.idl
@@ -2,10 +2,17 @@
// 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"
+};
+
[
RuntimeEnabled=ScreenOrientation
] partial interface Screen {
- readonly attribute DOMString orientation;
+ readonly attribute OrientationType orientation;
boolean lockOrientation(DOMString orientation);
« 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