| 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_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ | 5 #ifndef UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ |
| 6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ | 6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Returns app list window or NULL if it is not visible. | 48 // Returns app list window or NULL if it is not visible. |
| 49 aura::Window* GetWindow(); | 49 aura::Window* GetWindow(); |
| 50 | 50 |
| 51 // Returns app list view if one exists, or NULL otherwise. | 51 // Returns app list view if one exists, or NULL otherwise. |
| 52 AppListView* GetView() { return view_; } | 52 AppListView* GetView() { return view_; } |
| 53 | 53 |
| 54 // AppListPresenter: | 54 // AppListPresenter: |
| 55 void Show(int64_t display_id) override; | 55 void Show(int64_t display_id) override; |
| 56 void Dismiss() override; | 56 void Dismiss() override; |
| 57 void ToggleAppList(int64_t display_id) override; | 57 void ToggleAppList(int64_t display_id) override; |
| 58 bool IsVisible() const override; |
| 58 bool GetTargetVisibility() const override; | 59 bool GetTargetVisibility() const override; |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 friend class test::AppListPresenterImplTestApi; | 62 friend class test::AppListPresenterImplTestApi; |
| 62 | 63 |
| 63 // Whether the app list's aura::Window is currently visible. | |
| 64 bool IsVisible() const; | |
| 65 | |
| 66 // Sets the app list view and attempts to show it. | 64 // Sets the app list view and attempts to show it. |
| 67 void SetView(AppListView* view); | 65 void SetView(AppListView* view); |
| 68 | 66 |
| 69 // Forgets the view. | 67 // Forgets the view. |
| 70 void ResetView(); | 68 void ResetView(); |
| 71 | 69 |
| 72 // Starts show/hide animation. | 70 // Starts show/hide animation. |
| 73 void ScheduleAnimation(); | 71 void ScheduleAnimation(); |
| 74 | 72 |
| 75 // aura::client::FocusChangeObserver overrides: | 73 // aura::client::FocusChangeObserver overrides: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 112 |
| 115 // Whether should schedule snap back animation. | 113 // Whether should schedule snap back animation. |
| 116 bool should_snap_back_ = false; | 114 bool should_snap_back_ = false; |
| 117 | 115 |
| 118 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); | 116 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); |
| 119 }; | 117 }; |
| 120 | 118 |
| 121 } // namespace app_list | 119 } // namespace app_list |
| 122 | 120 |
| 123 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ | 121 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ |
| OLD | NEW |