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_SHOWER_APP_LIST_SHOWER_H_ |
| 6 #define UI_APP_LIST_SHOWER_APP_LIST_SHOWER_H_ |
| 7 |
| 8 #include "ui/app_list/shower/app_list_shower_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace app_list { |
| 15 |
| 16 // Interface for showing and hiding the app list. |
| 17 class APP_LIST_SHOWER_EXPORT AppListShower { |
| 18 public: |
| 19 virtual ~AppListShower() {} |
| 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 the app list's aura::Window is currently visible. |
| 31 virtual bool IsVisible() const = 0; |
| 32 |
| 33 // Returns target visibility. This may differ from IsVisible() if a |
| 34 // visibility transition is in progress. |
| 35 virtual bool GetTargetVisibility() const = 0; |
| 36 }; |
| 37 |
| 38 } // namespace app_list |
| 39 |
| 40 #endif // UI_APP_LIST_SHOWER_APP_LIST_SHOWER_H_ |
OLD | NEW |