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

Unified Diff: content/public/common/screen_orientation.mojom

Issue 549603003: Create Mojo service for locking/unlocking screen orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review, port unittest 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
Index: content/public/common/screen_orientation.mojom
diff --git a/content/public/common/screen_orientation.mojom b/content/public/common/screen_orientation.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..7d40436f89e318cf8d5a54803533fe57094a085c
--- /dev/null
+++ b/content/public/common/screen_orientation.mojom
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content {
+
+enum ScreenOrientationLockType {
+ DEFAULT = 0, // Equivalent to unlock.
+ PORTRAIT_PRIMARY,
+ PORTRAIT_SECONDARY,
+ LANDSCAPE_PRIMARY,
+ LANDSCAPE_SECONDARY,
+ ANY,
+ LANDSCAPE,
+ PORTRAIT,
+ NATURAL,
+};
+
+enum ScreenOrientationLockResult {
+ // The lock was successfully applied.
+ SUCCESS,
+
+ // Failed because locking isn't available on the platform.
+ ERROR_NOT_AVAILABLE,
qsr 2014/09/22 13:01:48 Do we want to remove this, and instead not registe
+
+ // Failed because fullscreen is required to lock.
+ ERROR_FULLSCREEN_REQUIRED,
+
+ // Failed because another lock/unlock got called before this one ended.
+ ERROR_CANCELED,
+};
+
+}

Powered by Google App Engine
This is Rietveld 408576698