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

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

Issue 23072036: Adds an integration test for uninstalling app list search results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 months 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
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"
(...skipping 11 matching lines...) Expand all
22 class ApplicationDragAndDropHost; 22 class ApplicationDragAndDropHost;
23 class AppListView; 23 class AppListView;
24 class PaginationModel; 24 class PaginationModel;
25 } 25 }
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 {
33 class AppListControllerTestApi;
34 }
35
32 namespace internal { 36 namespace internal {
33 37
34 // AppListController is a controller that manages app list UI for shell. 38 // AppListController is a controller that manages app list UI for shell.
35 // It creates AppListView and schedules showing/hiding animation. 39 // It creates AppListView and schedules showing/hiding animation.
36 // While the UI is visible, it monitors things such as app list widget's 40 // While the UI is visible, it monitors things such as app list widget's
37 // activation state and desktop mouse click to auto dismiss the UI. 41 // activation state and desktop mouse click to auto dismiss the UI.
38 class AppListController : public ui::EventHandler, 42 class AppListController : public ui::EventHandler,
39 public aura::client::FocusChangeObserver, 43 public aura::client::FocusChangeObserver,
40 public aura::WindowObserver, 44 public aura::WindowObserver,
41 public ui::ImplicitAnimationObserver, 45 public ui::ImplicitAnimationObserver,
(...skipping 14 matching lines...) Expand all
56 bool IsVisible() const; 60 bool IsVisible() const;
57 61
58 // Returns target visibility. This differs from IsVisible() if an animation 62 // Returns target visibility. This differs from IsVisible() if an animation
59 // is ongoing. 63 // is ongoing.
60 bool GetTargetVisibility() const { return is_visible_; } 64 bool GetTargetVisibility() const { return is_visible_; }
61 65
62 // Returns app list window or NULL if it is not visible. 66 // Returns app list window or NULL if it is not visible.
63 aura::Window* GetWindow(); 67 aura::Window* GetWindow();
64 68
65 private: 69 private:
70 friend class test::AppListControllerTestApi;
71
66 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 72 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
67 // operations outside the application list. 73 // operations outside the application list.
68 void SetDragAndDropHostOfCurrentAppList( 74 void SetDragAndDropHostOfCurrentAppList(
69 app_list::ApplicationDragAndDropHost* drag_and_drop_host); 75 app_list::ApplicationDragAndDropHost* drag_and_drop_host);
70 76
71 // Sets the app list view and attempts to show it. 77 // Sets the app list view and attempts to show it.
72 void SetView(app_list::AppListView* view); 78 void SetView(app_list::AppListView* view);
73 79
74 // Forgets the view. 80 // Forgets the view.
75 void ResetView(); 81 void ResetView();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Whether should schedule snap back animation. 133 // Whether should schedule snap back animation.
128 bool should_snap_back_; 134 bool should_snap_back_;
129 135
130 DISALLOW_COPY_AND_ASSIGN(AppListController); 136 DISALLOW_COPY_AND_ASSIGN(AppListController);
131 }; 137 };
132 138
133 } // namespace internal 139 } // namespace internal
134 } // namespace ash 140 } // namespace ash
135 141
136 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ 142 #endif // ASH_WM_APP_LIST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | chrome/browser/ui/app_list/app_list_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698