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_APP_LIST_CONTROLLER_H_ |
| 6 #define UI_APP_LIST_APP_LIST_CONTROLLER_H_ |
| 7 |
| 8 #include "ui/app_list/app_list_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace app_list { |
| 15 |
| 16 // Interface for manipulating the app list. |
| 17 class APP_LIST_EXPORT AppListController { |
| 18 public: |
| 19 virtual ~AppListController() {} |
| 20 |
| 21 // Show/hide app list window. The |window| is used to deterime in |
| 22 // which display (in which the |window| exists) the app list should |
| 23 // be shown. |
| 24 virtual void Show(aura::Window* window) = 0; |
| 25 |
| 26 // Invoked to dismiss app list. This may leave the view open but hidden from |
| 27 // the user. |
| 28 virtual void Dismiss() = 0; |
| 29 |
| 30 // Whether app list window is visible (shown or being shown). |
| 31 virtual bool IsVisible() const = 0; |
| 32 |
| 33 // Returns target visibility. This differs from IsVisible() if an animation |
| 34 // is ongoing. |
| 35 virtual bool GetTargetVisibility() const = 0; |
| 36 }; |
| 37 |
| 38 } // namespace app_list |
| 39 |
| 40 #endif // UI_APP_LIST_APP_LIST_CONTROLLER_H_ |
OLD | NEW |