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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 | 224 |
225 void set_target_root_window(aura::Window* target_root_window) { | 225 void set_target_root_window(aura::Window* target_root_window) { |
226 target_root_window_ = target_root_window; | 226 target_root_window_ = target_root_window; |
227 } | 227 } |
228 | 228 |
229 // Shows the context menu for the background and launcher at | 229 // Shows the context menu for the background and launcher at |
230 // |location_in_screen| (in screen coordinates). | 230 // |location_in_screen| (in screen coordinates). |
231 void ShowContextMenu(const gfx::Point& location_in_screen, | 231 void ShowContextMenu(const gfx::Point& location_in_screen, |
232 ui::MenuSourceType source_type); | 232 ui::MenuSourceType source_type); |
233 | 233 |
234 // Toggles the app list. |window| specifies in which display the app | 234 // Shows the app list. |window| specifies in which display the app |
235 // list should be shown. If this is NULL, the active root window | 235 // list should be shown. If this is NULL, the active root window |
236 // will be used. | 236 // will be used. |
237 void ShowAppList(aura::Window* anchor); | |
James Cook
2014/08/14 20:49:36
Another option would be to provide "SetAppListVisi
Matt Giuca
2014/08/15 01:00:21
I have a slight preference to keep things the way
| |
238 | |
239 // Dismisses the app list. | |
240 void DismissAppList(); | |
241 | |
242 // Shows the app list if it's not visible. Dismisses it otherwise. | |
237 void ToggleAppList(aura::Window* anchor); | 243 void ToggleAppList(aura::Window* anchor); |
238 | 244 |
239 // Returns app list target visibility. | 245 // Returns app list target visibility. |
240 bool GetAppListTargetVisibility() const; | 246 bool GetAppListTargetVisibility() const; |
241 | 247 |
242 // Returns app list window or NULL if it is not visible. | 248 // Returns app list window or NULL if it is not visible. |
243 aura::Window* GetAppListWindow(); | 249 aura::Window* GetAppListWindow(); |
244 | 250 |
245 // Returns app list view or NULL if it is not visible. | 251 // Returns app list view or NULL if it is not visible. |
246 app_list::AppListView* GetAppListView(); | 252 app_list::AppListView* GetAppListView(); |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
751 | 757 |
752 // Injected content::GPUDataManager support. | 758 // Injected content::GPUDataManager support. |
753 scoped_ptr<GPUSupport> gpu_support_; | 759 scoped_ptr<GPUSupport> gpu_support_; |
754 | 760 |
755 DISALLOW_COPY_AND_ASSIGN(Shell); | 761 DISALLOW_COPY_AND_ASSIGN(Shell); |
756 }; | 762 }; |
757 | 763 |
758 } // namespace ash | 764 } // namespace ash |
759 | 765 |
760 #endif // ASH_SHELL_H_ | 766 #endif // ASH_SHELL_H_ |
OLD | NEW |