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

Unified Diff: components/arc/common/app.mojom

Issue 2300943002: arc: Support more orientation lock types. (Closed)
Patch Set: Created 4 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 | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/app.mojom
diff --git a/components/arc/common/app.mojom b/components/arc/common/app.mojom
index 32a9d828dd31772e441fca17e970642e217ca486..7087e135af0fb0963b1c27f25911d419e5df44e0 100644
--- a/components/arc/common/app.mojom
+++ b/components/arc/common/app.mojom
@@ -10,12 +10,25 @@ import "scale_factor.mojom";
import "screen_rect.mojom";
// Describes OrientationLock request.
+// Note: ChromeOS currently assumes the internal panel is always landscape.
+// All rotation angles mentioned here are measured clockwise.
[Extensible]
enum OrientationLock {
NONE = 0,
+ // Rotated 90 or 270 deg.
PORTRAIT = 1,
+ // Rotated 0 or 180 deg.
LANDSCAPE = 2,
+ // Keep the current orientation.
CURRENT = 3,
+ // Rotated 90 deg.
+ PORTRAIT_PRIMARY = 4,
+ // Rotated 0 deg.
+ LANDSCAPE_PRIMARY = 5,
+ // Rotated 270 deg.
+ PORTRAIT_SECONDARY = 6,
+ // Rotated 180 deg.
+ LANDSCAPE_SECONDARY = 7,
};
// Describes ARC app.
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698