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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/app_list/pagination_model_observer.h" | 12 #include "ui/app_list/pagination_model_observer.h" |
13 #include "ui/app_list/presenter/app_list_presenter.h" | 13 #include "ui/app_list/presenter/app_list_presenter.h" |
14 #include "ui/app_list/presenter/app_list_presenter_delegate.h" | 14 #include "ui/app_list/presenter/app_list_presenter_delegate.h" |
15 #include "ui/aura/client/focus_change_observer.h" | 15 #include "ui/aura/client/focus_change_observer.h" |
16 #include "ui/aura/window_observer.h" | 16 #include "ui/aura/window_observer.h" |
17 #include "ui/compositor/layer_animation_observer.h" | 17 #include "ui/compositor/layer_animation_observer.h" |
18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/views/widget/widget_observer.h" | 19 #include "ui/views/widget/widget_observer.h" |
20 | 20 |
21 namespace app_list { | 21 namespace app_list { |
22 class AppListView; | 22 class AppListView; |
23 class AppListViewDelegate; | 23 class AppListViewDelegate; |
24 class AppListPresenterDelegateFactory; | 24 class AppListPresenterDelegateFactory; |
25 | 25 |
26 namespace test { | 26 namespace test { |
27 class AppListPresenterImplTestApi; | 27 class AppListPresenterImplTestApi; |
28 } | 28 } |
29 | 29 |
30 class AppListPresenterImplTest; | |
31 class AppListViewDelegate; | 30 class AppListViewDelegate; |
32 | 31 |
33 // Manages app list UI. Creates AppListView and schedules showing/hiding | 32 // Manages app list UI. Creates AppListView and schedules showing/hiding |
34 // animation. While the UI is visible, it monitors things such as app list | 33 // animation. While the UI is visible, it monitors things such as app list |
35 // activation state to auto dismiss the UI. Delegates the responsibility | 34 // activation state to auto dismiss the UI. Delegates the responsibility |
36 // for laying out the app list UI to ash::AppListLayoutDelegate. | 35 // for laying out the app list UI to ash::AppListLayoutDelegate. |
37 class APP_LIST_PRESENTER_EXPORT AppListPresenterImpl | 36 class APP_LIST_PRESENTER_EXPORT AppListPresenterImpl |
38 : public AppListPresenter, | 37 : public AppListPresenter, |
39 public aura::client::FocusChangeObserver, | 38 public aura::client::FocusChangeObserver, |
40 public aura::WindowObserver, | 39 public aura::WindowObserver, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 111 |
113 // Whether should schedule snap back animation. | 112 // Whether should schedule snap back animation. |
114 bool should_snap_back_ = false; | 113 bool should_snap_back_ = false; |
115 | 114 |
116 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); | 115 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); |
117 }; | 116 }; |
118 | 117 |
119 } // namespace app_list | 118 } // namespace app_list |
120 | 119 |
121 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ | 120 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ |
OLD | NEW |