| Index: components/arc/common/app.mojom
|
| diff --git a/components/arc/common/app.mojom b/components/arc/common/app.mojom
|
| index c38b53a209066167ae55d84fae8f26bcc88768ec..0c31b09dd7060612850e18cf16196cb3251fe727 100644
|
| --- a/components/arc/common/app.mojom
|
| +++ b/components/arc/common/app.mojom
|
| @@ -2,13 +2,21 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| //
|
| -// Next MinVersion: 11
|
| +// Next MinVersion: 12
|
|
|
| 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.
|
| @@ -45,7 +54,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.
|
| @@ -95,6 +104,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.
|
|
|