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

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

Issue 2112013002: Allow arc app to lock screen orientation in TouchView/Tablet mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow arc app to lock screen orientation in TouchView/Tablet mode Created 4 years, 5 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: components/arc/common/app.mojom
diff --git a/components/arc/common/app.mojom b/components/arc/common/app.mojom
index f9aed0b672d3e157eb550a36733293f2da2f536d..d3d3039eb5e19507e578944b7701f1a89b528204 100644
--- a/components/arc/common/app.mojom
+++ b/components/arc/common/app.mojom
@@ -9,6 +9,14 @@ module arc.mojom;
import "scale_factor.mojom";
import "screen_rect.mojom";
+// Describes OrientationLock request.
+[Extensible]
+enum OrientationLock {
+ NONE = 0,
+ PORTRAIT = 1,
+ LANDSCAPE = 2,
+};
+
// Describes ARC app.
struct AppInfo {
string name;
@@ -16,6 +24,7 @@ struct AppInfo {
string activity;
[MinVersion=2] bool sticky; // true if the app cannot be uninstalled
[MinVersion=7] bool notifications_enabled;
+ [MinVersion=11] OrientationLock orientation_lock;
};
// Describes ARC package.
@@ -46,7 +55,7 @@ enum ShowPackageInfoPage {
MANAGE_LINKS = 1,
};
-// Next method ID: 12
+// Next method ID: 13
interface AppHost {
// Sends newly added ARC app to Chrome. This message is sent when ARC receives
// package added notification. Multiple apps may be added in the one package.
@@ -96,6 +105,10 @@ interface AppHost {
// Notifies that an application shortcut needs to be created.
[MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
+
+ // Notifies that task requested orientation lock.
+ [MinVersion=11] OnTaskOrientationLockRequested@12(int32 task_id,
+ OrientationLock lock);
};
// TODO(lhchavez): Migrate all request/response messages to Mojo.
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698