| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_H_ | |
| 6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "ui/app_list/presenter/app_list_presenter_export.h" | |
| 11 | |
| 12 namespace app_list { | |
| 13 | |
| 14 // Interface for showing and hiding the app list. | |
| 15 class APP_LIST_PRESENTER_EXPORT AppListPresenter { | |
| 16 public: | |
| 17 virtual ~AppListPresenter() {} | |
| 18 | |
| 19 // Show/hide app list window. The |window| is used to deterime in | |
| 20 // which display (in which the |window| exists) the app list should | |
| 21 // be shown. | |
| 22 virtual void Show(int64_t display_id) = 0; | |
| 23 | |
| 24 // Invoked to dismiss app list. This may leave the view open but hidden from | |
| 25 // the user. | |
| 26 virtual void Dismiss() = 0; | |
| 27 | |
| 28 // Show the app list if it is visible, hide it if it is hidden. | |
| 29 virtual void ToggleAppList(int64_t display_id) = 0; | |
| 30 | |
| 31 // Returns current visibility of the app list. | |
| 32 virtual bool IsVisible() const = 0; | |
| 33 | |
| 34 // Returns target visibility. This may differ from IsVisible() if a | |
| 35 // visibility transition is in progress. | |
| 36 virtual bool GetTargetVisibility() const = 0; | |
| 37 }; | |
| 38 | |
| 39 } // namespace app_list | |
| 40 | |
| 41 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_H_ | |
| OLD | NEW |