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/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Whether app list window is visible (shown or being shown). | 55 // Whether app list window is visible (shown or being shown). |
56 bool IsVisible() const; | 56 bool IsVisible() const; |
57 | 57 |
58 // Returns target visibility. This differs from IsVisible() if an animation | 58 // Returns target visibility. This differs from IsVisible() if an animation |
59 // is ongoing. | 59 // is ongoing. |
60 bool GetTargetVisibility() const { return is_visible_; } | 60 bool GetTargetVisibility() const { return is_visible_; } |
61 | 61 |
62 // Returns app list window or NULL if it is not visible. | 62 // Returns app list window or NULL if it is not visible. |
63 aura::Window* GetWindow(); | 63 aura::Window* GetWindow(); |
64 | 64 |
| 65 // Returns the app list view. Used for integration testing. |
| 66 app_list::AppListView* GetViewForTesting(); |
| 67 |
65 private: | 68 private: |
66 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 69 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
67 // operations outside the application list. | 70 // operations outside the application list. |
68 void SetDragAndDropHostOfCurrentAppList( | 71 void SetDragAndDropHostOfCurrentAppList( |
69 app_list::ApplicationDragAndDropHost* drag_and_drop_host); | 72 app_list::ApplicationDragAndDropHost* drag_and_drop_host); |
70 | 73 |
71 // Sets the app list view and attempts to show it. | 74 // Sets the app list view and attempts to show it. |
72 void SetView(app_list::AppListView* view); | 75 void SetView(app_list::AppListView* view); |
73 | 76 |
74 // Forgets the view. | 77 // Forgets the view. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Whether should schedule snap back animation. | 130 // Whether should schedule snap back animation. |
128 bool should_snap_back_; | 131 bool should_snap_back_; |
129 | 132 |
130 DISALLOW_COPY_AND_ASSIGN(AppListController); | 133 DISALLOW_COPY_AND_ASSIGN(AppListController); |
131 }; | 134 }; |
132 | 135 |
133 } // namespace internal | 136 } // namespace internal |
134 } // namespace ash | 137 } // namespace ash |
135 | 138 |
136 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ | 139 #endif // ASH_WM_APP_LIST_CONTROLLER_H_ |
OLD | NEW |