Chromium Code Reviews| Index: components/arc/common/app.mojom |
| diff --git a/components/arc/common/app.mojom b/components/arc/common/app.mojom |
| index c38b53a209066167ae55d84fae8f26bcc88768ec..02fb9271f26701f8d48a7ce2faac3c7ec7d9ea10 100644 |
| --- a/components/arc/common/app.mojom |
| +++ b/components/arc/common/app.mojom |
| @@ -2,13 +2,19 @@ |
| // 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"; |
| +enum OrientationLock { |
|
Luis Héctor Chávez
2016/06/30 23:01:47
Do you envision adding more stuff to this enum? (M
oshima
2016/07/01 00:44:47
I'm not sure, and since I'm not sure, I added it :
|
| + NONE = 0, |
| + PORTRAIT = 1, |
| + LANDSCAPE = 2, |
| +}; |
| + |
| // Describes ARC app. |
| struct AppInfo { |
| string name; |
| @@ -16,6 +22,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 +52,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 +102,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. |