OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module app_list.mojom; | 5 module app_list.mojom; |
6 | 6 |
7 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 7 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
8 | 8 |
9 // TODO(msw): Rename this file to app_list.mojom; move to ash? | 9 // TODO(msw): Rename this file to app_list.mojom; move to ash? |
10 // TODO(msw): Ash should implement the app list and presenter; chrome should | 10 // TODO(msw): Ash should implement the app list and presenter; chrome should |
11 // just push data about its apps into the app list interface. | 11 // just push data about its apps into the app list interface. |
12 | 12 |
13 // Implemented by ash. Used by chrome to set the presenter interface. | 13 // Implemented by ash. Used by chrome to set the presenter interface. |
14 interface AppList { | 14 interface AppList { |
15 // Set the app list presenter interface, to let ash trigger Chrome's app list. | 15 // Set the app list presenter interface, to let ash trigger Chrome's app list. |
16 SetAppListPresenter(AppListPresenter presenter); | 16 SetAppListPresenter(AppListPresenter presenter); |
| 17 |
| 18 // Notify the app list that the presenter's [target] visibility changed. |
| 19 OnTargetVisibilityChanged(bool visible); |
| 20 OnVisibilityChanged(bool visible); |
17 }; | 21 }; |
18 | 22 |
19 // Implemented by chrome. Used by ash to actually show and dismiss the app list. | 23 // Implemented by chrome. Used by ash to actually show and dismiss the app list. |
20 interface AppListPresenter { | 24 interface AppListPresenter { |
21 // Show the app list on the specified display. | 25 // Show the app list on the specified display. |
22 Show(int64 display_id); | 26 Show(int64 display_id); |
23 | 27 |
24 // Dismiss the app list. | 28 // Dismiss the app list. |
25 Dismiss(); | 29 Dismiss(); |
26 | 30 |
27 // Show the app list (on the specified display) if it is hidden; hide the | 31 // Show the app list (on the specified display) if it is hidden; hide the |
28 // app list if it is shown. | 32 // app list if it is shown. |
29 ToggleAppList(int64 display_id); | 33 ToggleAppList(int64 display_id); |
30 }; | 34 }; |
OLD | NEW |