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

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

Issue 2184103003: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: 13 5 // Next MinVersion: 14
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,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Page for ShowPackageInfoOnPage. 49 // Page for ShowPackageInfoOnPage.
50 [Extensible] 50 [Extensible]
51 enum ShowPackageInfoPage { 51 enum ShowPackageInfoPage {
52 // The main package info page. 52 // The main package info page.
53 MAIN = 0, 53 MAIN = 0,
54 54
55 // Page for managing links assigned to the app. 55 // Page for managing links assigned to the app.
56 MANAGE_LINKS = 1, 56 MANAGE_LINKS = 1,
57 }; 57 };
58 58
59 // Next method ID: 13 59 // Next method ID: 14
60 interface AppHost { 60 interface AppHost {
61 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 61 // Sends newly added ARC app to Chrome. This message is sent when ARC receives
62 // package added notification. Multiple apps may be added in the one package. 62 // package added notification. Multiple apps may be added in the one package.
63 [MinVersion=1] OnAppAdded@2(AppInfo app); 63 [MinVersion=1] OnAppAdded@2(AppInfo app);
64 64
65 // Receives an icon of required |scale_factor| for specific ARC app. The app 65 // Receives an icon of required |scale_factor| for specific ARC app. The app
66 // is defined by |package_name| and |activity|. The icon content cannot be 66 // is defined by |package_name| and |activity|. The icon content cannot be
67 // empty and must match to |scale_factor| assuming 48x48 for 67 // empty and must match to |scale_factor| assuming 48x48 for
68 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. 68 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
69 // |icon_png_data| is a png-encoded image. 69 // |icon_png_data| is a png-encoded image.
(...skipping 23 matching lines...) Expand all
93 // Sends information about newly created task. 93 // Sends information about newly created task.
94 [MinVersion=4] OnTaskCreated@4(int32 task_id, string package_name, 94 [MinVersion=4] OnTaskCreated@4(int32 task_id, string package_name,
95 string activity); 95 string activity);
96 96
97 // Notifies that task has been destroyed. 97 // Notifies that task has been destroyed.
98 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); 98 [MinVersion=4] OnTaskDestroyed@5(int32 task_id);
99 99
100 // Notifies that task has been activated. 100 // Notifies that task has been activated.
101 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 101 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
102 102
103 // Notifies that task has been moved to front.
104 [MinVersion=13] OnTaskMovedToFront@13(int32 task_id);
reveman 2016/07/28 14:55:00 I think this needs to go through the wayland chann
khmel 2016/07/28 15:13:27 Ok, will try to use wayland service for this task.
105
103 // Notifies that notifications enabled settings in Android is changed. 106 // Notifies that notifications enabled settings in Android is changed.
104 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 107 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
105 bool enabled); 108 bool enabled);
106 109
107 // Notifies that an application shortcut needs to be created. 110 // Notifies that an application shortcut needs to be created.
108 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 111 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
109 112
110 // Notifies that task requested orientation lock. 113 // Notifies that task requested orientation lock.
111 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, 114 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id,
112 OrientationLock lock); 115 OrientationLock lock);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 ShowPackageInfoPage page, 182 ShowPackageInfoPage page,
180 ScreenRect dimension_on_screen); 183 ScreenRect dimension_on_screen);
181 184
182 // Sets notification setting for the package. 185 // Sets notification setting for the package.
183 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 186 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
184 187
185 // Sends a request to ARC to uninstall the given package. Error (if ever 188 // Sends a request to ARC to uninstall the given package. Error (if ever
186 // happens) is ignored, and uninstall option should appear in the UI. 189 // happens) is ignored, and uninstall option should appear in the UI.
187 [MinVersion=2] UninstallPackage@5(string package_name); 190 [MinVersion=2] UninstallPackage@5(string package_name);
188 }; 191 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698