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

Side by Side Diff: components/arc/common/app.mojom

Issue 2140843002: Allow arc app to lock screen orientation in TouchView/Tablet mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Mark POWER key as system key so that it won't be passed to regular apps. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Next MinVersion: 12 5 // Next MinVersion: 13
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 import "screen_rect.mojom"; 10 import "screen_rect.mojom";
11 11
12 // Describes OrientationLock request. 12 // Describes OrientationLock request.
13 [Extensible] 13 [Extensible]
14 enum OrientationLock { 14 enum OrientationLock {
15 NONE = 0, 15 NONE = 0,
16 PORTRAIT = 1, 16 PORTRAIT = 1,
17 LANDSCAPE = 2, 17 LANDSCAPE = 2,
18 CURRENT = 3,
18 }; 19 };
19 20
20 // Describes ARC app. 21 // Describes ARC app.
21 struct AppInfo { 22 struct AppInfo {
22 string name; 23 string name;
23 string package_name; 24 string package_name;
24 string activity; 25 string activity;
25 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled 26 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled
26 [MinVersion=7] bool notifications_enabled; 27 [MinVersion=7] bool notifications_enabled;
27 [MinVersion=11] OrientationLock orientation_lock; 28 [MinVersion=12] OrientationLock orientation_lock;
28 }; 29 };
29 30
30 // Describes ARC package. 31 // Describes ARC package.
31 struct ArcPackageInfo { 32 struct ArcPackageInfo {
32 string package_name; 33 string package_name;
33 int32 package_version; 34 int32 package_version;
34 int64 last_backup_android_id; 35 int64 last_backup_android_id;
35 int64 last_backup_time; 36 int64 last_backup_time;
36 bool sync; // true if package installation should be synced 37 bool sync; // true if package installation should be synced
37 [MinVersion=11] bool system; // true if package is system package. 38 [MinVersion=11] bool system; // true if package is system package.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 101 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
101 102
102 // Notifies that notifications enabled settings in Android is changed. 103 // Notifies that notifications enabled settings in Android is changed.
103 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 104 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
104 bool enabled); 105 bool enabled);
105 106
106 // Notifies that an application shortcut needs to be created. 107 // Notifies that an application shortcut needs to be created.
107 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 108 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
108 109
109 // Notifies that task requested orientation lock. 110 // Notifies that task requested orientation lock.
110 [MinVersion=11] OnTaskOrientationLockRequested@12(int32 task_id, 111 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id,
111 OrientationLock lock); 112 OrientationLock lock);
112 }; 113 };
113 114
114 // TODO(lhchavez): Migrate all request/response messages to Mojo. 115 // TODO(lhchavez): Migrate all request/response messages to Mojo.
115 // Next method ID: 16 116 // Next method ID: 16
116 // Deprecated method ID: 9 117 // Deprecated method ID: 9
117 interface AppInstance { 118 interface AppInstance {
118 Init@0(AppHost host_ptr); 119 Init@0(AppHost host_ptr);
119 120
120 // Query if a given resolution can be handled by the application. Returns true 121 // Query if a given resolution can be handled by the application. Returns true
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ShowPackageInfoPage page, 179 ShowPackageInfoPage page,
179 ScreenRect dimension_on_screen); 180 ScreenRect dimension_on_screen);
180 181
181 // Sets notification setting for the package. 182 // Sets notification setting for the package.
182 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 183 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
183 184
184 // Sends a request to ARC to uninstall the given package. Error (if ever 185 // Sends a request to ARC to uninstall the given package. Error (if ever
185 // happens) is ignored, and uninstall option should appear in the UI. 186 // happens) is ignored, and uninstall option should appear in the UI.
186 [MinVersion=2] UninstallPackage@5(string package_name); 187 [MinVersion=2] UninstallPackage@5(string package_name);
187 }; 188 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc ('k') | ui/wm/core/accelerator_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698