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

Unified Diff: modules/screen_orientation/ScreenOrientation.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 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 | « modules/quota/StorageQuota.idl ('k') | modules/serviceworkers/Client.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « modules/quota/StorageQuota.idl ('k') | modules/serviceworkers/Client.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698