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

Side by Side 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 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: 12
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.
13 [Extensible]
14 enum OrientationLock {
15 NONE = 0,
16 PORTRAIT = 1,
17 LANDSCAPE = 2,
18 };
19
12 // Describes ARC app. 20 // Describes ARC app.
13 struct AppInfo { 21 struct AppInfo {
14 string name; 22 string name;
15 string package_name; 23 string package_name;
16 string activity; 24 string activity;
17 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled 25 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled
18 [MinVersion=7] bool notifications_enabled; 26 [MinVersion=7] bool notifications_enabled;
27 [MinVersion=11] OrientationLock orientation_lock;
19 }; 28 };
20 29
21 // Describes ARC package. 30 // Describes ARC package.
22 struct ArcPackageInfo { 31 struct ArcPackageInfo {
23 string package_name; 32 string package_name;
24 int32 package_version; 33 int32 package_version;
25 int64 last_backup_android_id; 34 int64 last_backup_android_id;
26 int64 last_backup_time; 35 int64 last_backup_time;
27 bool sync; // true if package installation should be synced 36 bool sync; // true if package installation should be synced
28 [MinVersion=11] bool system; // true if package is system package. 37 [MinVersion=11] bool system; // true if package is system package.
(...skipping 10 matching lines...) Expand all
39 // Page for ShowPackageInfoOnPage. 48 // Page for ShowPackageInfoOnPage.
40 [Extensible] 49 [Extensible]
41 enum ShowPackageInfoPage { 50 enum ShowPackageInfoPage {
42 // The main package info page. 51 // The main package info page.
43 MAIN = 0, 52 MAIN = 0,
44 53
45 // Page for managing links assigned to the app. 54 // Page for managing links assigned to the app.
46 MANAGE_LINKS = 1, 55 MANAGE_LINKS = 1,
47 }; 56 };
48 57
49 // Next method ID: 12 58 // Next method ID: 13
50 interface AppHost { 59 interface AppHost {
51 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 60 // Sends newly added ARC app to Chrome. This message is sent when ARC receives
52 // package added notification. Multiple apps may be added in the one package. 61 // package added notification. Multiple apps may be added in the one package.
53 [MinVersion=1] OnAppAdded@2(AppInfo app); 62 [MinVersion=1] OnAppAdded@2(AppInfo app);
54 63
55 // Receives an icon of required |scale_factor| for specific ARC app. The app 64 // Receives an icon of required |scale_factor| for specific ARC app. The app
56 // is defined by |package_name| and |activity|. The icon content cannot be 65 // is defined by |package_name| and |activity|. The icon content cannot be
57 // empty and must match to |scale_factor| assuming 48x48 for 66 // empty and must match to |scale_factor| assuming 48x48 for
58 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. 67 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
59 // |icon_png_data| is a png-encoded image. 68 // |icon_png_data| is a png-encoded image.
(...skipping 29 matching lines...) Expand all
89 98
90 // Notifies that task has been activated. 99 // Notifies that task has been activated.
91 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 100 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
92 101
93 // Notifies that notifications enabled settings in Android is changed. 102 // Notifies that notifications enabled settings in Android is changed.
94 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 103 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
95 bool enabled); 104 bool enabled);
96 105
97 // Notifies that an application shortcut needs to be created. 106 // Notifies that an application shortcut needs to be created.
98 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 107 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
108
109 // Notifies that task requested orientation lock.
110 [MinVersion=11] OnTaskOrientationLockRequested@12(int32 task_id,
111 OrientationLock lock);
99 }; 112 };
100 113
101 // TODO(lhchavez): Migrate all request/response messages to Mojo. 114 // TODO(lhchavez): Migrate all request/response messages to Mojo.
102 // Next method ID: 16 115 // Next method ID: 16
103 // Deprecated method ID: 9 116 // Deprecated method ID: 9
104 interface AppInstance { 117 interface AppInstance {
105 Init@0(AppHost host_ptr); 118 Init@0(AppHost host_ptr);
106 119
107 // Query if a given resolution can be handled by the application. Returns true 120 // Query if a given resolution can be handled by the application. Returns true
108 // if it can. 121 // if it can.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ShowPackageInfoPage page, 178 ShowPackageInfoPage page,
166 ScreenRect dimension_on_screen); 179 ScreenRect dimension_on_screen);
167 180
168 // Sets notification setting for the package. 181 // Sets notification setting for the package.
169 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 182 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
170 183
171 // Sends a request to ARC to uninstall the given package. Error (if ever 184 // Sends a request to ARC to uninstall the given package. Error (if ever
172 // happens) is ignored, and uninstall option should appear in the UI. 185 // happens) is ignored, and uninstall option should appear in the UI.
173 [MinVersion=2] UninstallPackage@5(string package_name); 186 [MinVersion=2] UninstallPackage@5(string package_name);
174 }; 187 };
OLDNEW
« 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