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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 class MouseCursorEventFilter; | 89 class MouseCursorEventFilter; |
90 class OutputConfiguratorAnimation; | 90 class OutputConfiguratorAnimation; |
91 class OverlayEventFilter; | 91 class OverlayEventFilter; |
92 class PanelLayoutManager; | 92 class PanelLayoutManager; |
93 class ResizeShadowController; | 93 class ResizeShadowController; |
94 class RootWindowController; | 94 class RootWindowController; |
95 class RootWindowLayoutManager; | 95 class RootWindowLayoutManager; |
96 class ScreenPositionController; | 96 class ScreenPositionController; |
97 class ShadowController; | 97 class ShadowController; |
98 class ShelfLayoutManager; | 98 class ShelfLayoutManager; |
99 class ShellContextMenu; | |
100 class SlowAnimationEventFilter; | 99 class SlowAnimationEventFilter; |
101 class StackingController; | 100 class StackingController; |
102 class StatusAreaWidget; | 101 class StatusAreaWidget; |
103 class SystemGestureEventFilter; | 102 class SystemGestureEventFilter; |
104 class SystemModalContainerEventFilter; | 103 class SystemModalContainerEventFilter; |
105 class TooltipController; | 104 class TooltipController; |
106 class TouchObserverHUD; | 105 class TouchObserverHUD; |
107 class VisibilityController; | 106 class VisibilityController; |
108 class WindowModalityController; | 107 class WindowModalityController; |
109 class WorkspaceController; | 108 class WorkspaceController; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 | 181 |
183 void set_active_root_window(aura::RootWindow* active_root_window) { | 182 void set_active_root_window(aura::RootWindow* active_root_window) { |
184 active_root_window_ = active_root_window; | 183 active_root_window_ = active_root_window; |
185 } | 184 } |
186 | 185 |
187 // Adds or removes |filter| from the aura::Env's pre-target event-handler | 186 // Adds or removes |filter| from the aura::Env's pre-target event-handler |
188 // list. | 187 // list. |
189 void AddEnvEventFilter(aura::EventFilter* filter); | 188 void AddEnvEventFilter(aura::EventFilter* filter); |
190 void RemoveEnvEventFilter(aura::EventFilter* filter); | 189 void RemoveEnvEventFilter(aura::EventFilter* filter); |
191 | 190 |
192 // Shows the background menu over |widget|. | 191 // Shows the context menu for the background and launcher at |location|. |
sky
2012/10/10 04:07:17
Document what location is relative to.
| |
193 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); | 192 void ShowContextMenu(const gfx::Point& location); |
194 | 193 |
195 // Toggles app list. | 194 // Toggles app list. |
196 void ToggleAppList(); | 195 void ToggleAppList(); |
197 | 196 |
198 // Returns app list target visibility. | 197 // Returns app list target visibility. |
199 bool GetAppListTargetVisibility() const; | 198 bool GetAppListTargetVisibility() const; |
200 | 199 |
201 // Returns app list window or NULL if it is not visible. | 200 // Returns app list window or NULL if it is not visible. |
202 aura::Window* GetAppListWindow(); | 201 aura::Window* GetAppListWindow(); |
203 | 202 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 #endif // !defined(OS_MACOSX) | 425 #endif // !defined(OS_MACOSX) |
427 | 426 |
428 scoped_ptr<ShellDelegate> delegate_; | 427 scoped_ptr<ShellDelegate> delegate_; |
429 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; | 428 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; |
430 scoped_ptr<CapsLockDelegate> caps_lock_delegate_; | 429 scoped_ptr<CapsLockDelegate> caps_lock_delegate_; |
431 | 430 |
432 scoped_ptr<Launcher> launcher_; | 431 scoped_ptr<Launcher> launcher_; |
433 | 432 |
434 scoped_ptr<internal::AppListController> app_list_controller_; | 433 scoped_ptr<internal::AppListController> app_list_controller_; |
435 | 434 |
436 scoped_ptr<internal::ShellContextMenu> shell_context_menu_; | |
437 scoped_ptr<internal::StackingController> stacking_controller_; | 435 scoped_ptr<internal::StackingController> stacking_controller_; |
438 scoped_ptr<internal::ActivationController> activation_controller_; | 436 scoped_ptr<internal::ActivationController> activation_controller_; |
439 scoped_ptr<internal::CaptureController> capture_controller_; | 437 scoped_ptr<internal::CaptureController> capture_controller_; |
440 scoped_ptr<internal::WindowModalityController> window_modality_controller_; | 438 scoped_ptr<internal::WindowModalityController> window_modality_controller_; |
441 scoped_ptr<internal::DragDropController> drag_drop_controller_; | 439 scoped_ptr<internal::DragDropController> drag_drop_controller_; |
442 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; | 440 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; |
443 scoped_ptr<internal::ShadowController> shadow_controller_; | 441 scoped_ptr<internal::ShadowController> shadow_controller_; |
444 scoped_ptr<internal::TooltipController> tooltip_controller_; | 442 scoped_ptr<internal::TooltipController> tooltip_controller_; |
445 scoped_ptr<internal::VisibilityController> visibility_controller_; | 443 scoped_ptr<internal::VisibilityController> visibility_controller_; |
446 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; | 444 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 | 502 |
505 // Used by ash/shell. | 503 // Used by ash/shell. |
506 content::BrowserContext* browser_context_; | 504 content::BrowserContext* browser_context_; |
507 | 505 |
508 DISALLOW_COPY_AND_ASSIGN(Shell); | 506 DISALLOW_COPY_AND_ASSIGN(Shell); |
509 }; | 507 }; |
510 | 508 |
511 } // namespace ash | 509 } // namespace ash |
512 | 510 |
513 #endif // ASH_SHELL_H_ | 511 #endif // ASH_SHELL_H_ |
OLD | NEW |