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

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

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