Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: ash/wm/app_list_controller.h

Issue 11421194: Hook up the FocusController behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/launcher/launcher_icon_observer.h" 8 #include "ash/launcher/launcher_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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "ui/app_list/pagination_model_observer.h" 13 #include "ui/app_list/pagination_model_observer.h"
14 #include "ui/aura/client/focus_change_observer.h"
15 #include "ui/aura/root_window_observer.h" 14 #include "ui/aura/root_window_observer.h"
16 #include "ui/base/events/event_handler.h" 15 #include "ui/base/events/event_handler.h"
17 #include "ui/compositor/layer_animation_observer.h" 16 #include "ui/compositor/layer_animation_observer.h"
18 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 #include "ui/views/corewm/focus_change_shim.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 PaginationModel; 23 class PaginationModel;
24 } 24 }
25 25
26 namespace ui { 26 namespace ui {
27 class LocatedEvent; 27 class LocatedEvent;
28 } 28 }
29 29
30 namespace ash { 30 namespace ash {
31 namespace internal { 31 namespace internal {
32 32
33 // AppListController is a controller that manages app list UI for shell. 33 // AppListController is a controller that manages app list UI for shell.
34 // It creates AppListView and schedules showing/hiding animation. 34 // It creates AppListView and schedules showing/hiding animation.
35 // While the UI is visible, it monitors things such as app list widget's 35 // While the UI is visible, it monitors things such as app list widget's
36 // activation state and desktop mouse click to auto dismiss the UI. 36 // activation state and desktop mouse click to auto dismiss the UI.
37 class AppListController : public ui::EventHandler, 37 class AppListController : public views::corewm::FocusChangeShim,
38 public aura::client::FocusChangeObserver,
39 public aura::RootWindowObserver, 38 public aura::RootWindowObserver,
40 public ui::ImplicitAnimationObserver, 39 public ui::ImplicitAnimationObserver,
41 public views::WidgetObserver, 40 public views::WidgetObserver,
42 public ShellObserver, 41 public ShellObserver,
43 public LauncherIconObserver, 42 public LauncherIconObserver,
44 public app_list::PaginationModelObserver { 43 public app_list::PaginationModelObserver {
45 public: 44 public:
46 AppListController(); 45 AppListController();
47 virtual ~AppListController(); 46 virtual ~AppListController();
48 47
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Whether should schedule snap back animation. 116 // Whether should schedule snap back animation.
118 bool should_snap_back_; 117 bool should_snap_back_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(AppListController); 119 DISALLOW_COPY_AND_ASSIGN(AppListController);
121 }; 120 };
122 121
123 } // namespace internal 122 } // namespace internal
124 } // namespace ash 123 } // namespace ash
125 124
126 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 125 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698