| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_WM_APP_LIST_CONTROLLER_H_ | 5 #ifndef ASH_WM_APP_LIST_CONTROLLER_H_ |
| 6 #define ASH_WM_APP_LIST_CONTROLLER_H_ | 6 #define ASH_WM_APP_LIST_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/shelf/shelf_icon_observer.h" | 8 #include "ash/shelf/shelf_icon_observer.h" |
| 9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace ui { | 27 namespace ui { |
| 28 class LocatedEvent; | 28 class LocatedEvent; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace ash { | 31 namespace ash { |
| 32 namespace test { | 32 namespace test { |
| 33 class AppListControllerTestApi; | 33 class AppListControllerTestApi; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace internal { | |
| 37 | |
| 38 // AppListController is a controller that manages app list UI for shell. | 36 // AppListController is a controller that manages app list UI for shell. |
| 39 // It creates AppListView and schedules showing/hiding animation. | 37 // It creates AppListView and schedules showing/hiding animation. |
| 40 // While the UI is visible, it monitors things such as app list widget's | 38 // While the UI is visible, it monitors things such as app list widget's |
| 41 // activation state and desktop mouse click to auto dismiss the UI. | 39 // activation state and desktop mouse click to auto dismiss the UI. |
| 42 class AppListController : public ui::EventHandler, | 40 class AppListController : public ui::EventHandler, |
| 43 public aura::client::FocusChangeObserver, | 41 public aura::client::FocusChangeObserver, |
| 44 public aura::WindowObserver, | 42 public aura::WindowObserver, |
| 45 public ui::ImplicitAnimationObserver, | 43 public ui::ImplicitAnimationObserver, |
| 46 public views::WidgetObserver, | 44 public views::WidgetObserver, |
| 47 public ShellObserver, | 45 public ShellObserver, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 130 |
| 133 // Cached bounds of |view_| for snapping back animation after over-scroll. | 131 // Cached bounds of |view_| for snapping back animation after over-scroll. |
| 134 gfx::Rect view_bounds_; | 132 gfx::Rect view_bounds_; |
| 135 | 133 |
| 136 // Whether should schedule snap back animation. | 134 // Whether should schedule snap back animation. |
| 137 bool should_snap_back_; | 135 bool should_snap_back_; |
| 138 | 136 |
| 139 DISALLOW_COPY_AND_ASSIGN(AppListController); | 137 DISALLOW_COPY_AND_ASSIGN(AppListController); |
| 140 }; | 138 }; |
| 141 | 139 |
| 142 } // namespace internal | |
| 143 } // namespace ash | 140 } // namespace ash |
| 144 | 141 |
| 145 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ | 142 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ |
| OLD | NEW |