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