Chromium Code Reviews| 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? | |
|
James Cook
2016/12/10 00:50:08
Yeah, if we can prove that ash is the only app lis
msw
2016/12/10 01:08:12
Acknowledged.
| |
| 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. | |
| 12 | |
| 13 // Implemented by ash. Used by chrome to set the presenter interface. | |
| 14 interface AppList { | |
| 15 // Set the app list presenter interface, to let ash trigger Chrome's app list. | |
| 16 SetAppListPresenter(AppListPresenter presenter); | |
| 17 }; | |
| 18 | |
| 19 // Implemented by chrome. Used by ash to actually show and dismiss the app list. | |
| 9 interface AppListPresenter { | 20 interface AppListPresenter { |
| 10 // Show the app list on the specified display. | 21 // Show the app list on the specified display. |
| 11 Show(int64 display_id); | 22 Show(int64 display_id); |
| 12 | 23 |
| 13 // Dismiss the app list. | 24 // Dismiss the app list. |
| 14 Dismiss(); | 25 Dismiss(); |
| 15 | 26 |
| 16 // Show the app list (on the specified display) if it is hidden; hide the | 27 // Show the app list (on the specified display) if it is hidden; hide the |
| 17 // app list if it is shown. | 28 // app list if it is shown. |
| 18 ToggleAppList(int64 display_id); | 29 ToggleAppList(int64 display_id); |
| 19 }; | 30 }; |
| OLD | NEW |