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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 class UserWallpaperDelegate; | 76 class UserWallpaperDelegate; |
77 class VideoDetector; | 77 class VideoDetector; |
78 class WindowCycleController; | 78 class WindowCycleController; |
79 | 79 |
80 namespace internal { | 80 namespace internal { |
81 class AcceleratorFilter; | 81 class AcceleratorFilter; |
82 class ActivationController; | 82 class ActivationController; |
83 class AppListController; | 83 class AppListController; |
84 class CaptureController; | 84 class CaptureController; |
85 class DragDropController; | 85 class DragDropController; |
86 class EventClientImpl; | |
87 class EventRewriterEventFilter; | 86 class EventRewriterEventFilter; |
88 class FocusCycler; | 87 class FocusCycler; |
89 class MagnificationController; | 88 class MagnificationController; |
90 class MouseCursorEventFilter; | 89 class MouseCursorEventFilter; |
91 class OutputConfiguratorAnimation; | 90 class OutputConfiguratorAnimation; |
92 class OverlayEventFilter; | 91 class OverlayEventFilter; |
93 class PanelLayoutManager; | 92 class PanelLayoutManager; |
94 class ResizeShadowController; | 93 class ResizeShadowController; |
95 class RootWindowController; | 94 class RootWindowController; |
96 class RootWindowLayoutManager; | 95 class RootWindowLayoutManager; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // contains the current active window as a decendant child. The active | 168 // contains the current active window as a decendant child. The active |
170 // RootWindow remains the same even when the active window becomes NULL, | 169 // RootWindow remains the same even when the active window becomes NULL, |
171 // until the another window who has a different root window becomes active. | 170 // until the another window who has a different root window becomes active. |
172 static aura::RootWindow* GetActiveRootWindow(); | 171 static aura::RootWindow* GetActiveRootWindow(); |
173 | 172 |
174 // Returns all root windows. | 173 // Returns all root windows. |
175 static RootWindowList GetAllRootWindows(); | 174 static RootWindowList GetAllRootWindows(); |
176 | 175 |
177 static aura::Window* GetContainer(aura::RootWindow* root_window, | 176 static aura::Window* GetContainer(aura::RootWindow* root_window, |
178 int container_id); | 177 int container_id); |
179 static const aura::Window* GetContainer(const aura::RootWindow* root_window, | |
180 int container_id); | |
181 | 178 |
182 // Returns the list of containers that match |container_id| in | 179 // Returns the list of containers that match |container_id| in |
183 // all root windows. | 180 // all root windows. |
184 static std::vector<aura::Window*> GetAllContainers(int container_id); | 181 static std::vector<aura::Window*> GetAllContainers(int container_id); |
185 | 182 |
186 void set_active_root_window(aura::RootWindow* active_root_window) { | 183 void set_active_root_window(aura::RootWindow* active_root_window) { |
187 active_root_window_ = active_root_window; | 184 active_root_window_ = active_root_window; |
188 } | 185 } |
189 | 186 |
190 // Adds or removes |filter| from the aura::Env's pre-target event-handler | 187 // Adds or removes |filter| from the aura::Env's pre-target event-handler |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 scoped_ptr<WindowCycleController> window_cycle_controller_; | 450 scoped_ptr<WindowCycleController> window_cycle_controller_; |
454 scoped_ptr<internal::FocusCycler> focus_cycler_; | 451 scoped_ptr<internal::FocusCycler> focus_cycler_; |
455 scoped_ptr<DisplayController> display_controller_; | 452 scoped_ptr<DisplayController> display_controller_; |
456 scoped_ptr<HighContrastController> high_contrast_controller_; | 453 scoped_ptr<HighContrastController> high_contrast_controller_; |
457 scoped_ptr<internal::MagnificationController> magnification_controller_; | 454 scoped_ptr<internal::MagnificationController> magnification_controller_; |
458 scoped_ptr<aura::FocusManager> focus_manager_; | 455 scoped_ptr<aura::FocusManager> focus_manager_; |
459 scoped_ptr<aura::client::UserActionClient> user_action_client_; | 456 scoped_ptr<aura::client::UserActionClient> user_action_client_; |
460 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_; | 457 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_; |
461 scoped_ptr<internal::ScreenPositionController> screen_position_controller_; | 458 scoped_ptr<internal::ScreenPositionController> screen_position_controller_; |
462 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_; | 459 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_; |
463 scoped_ptr<internal::EventClientImpl> event_client_; | |
464 | 460 |
465 // An event filter that rewrites or drops an event. | 461 // An event filter that rewrites or drops an event. |
466 scoped_ptr<internal::EventRewriterEventFilter> event_rewriter_filter_; | 462 scoped_ptr<internal::EventRewriterEventFilter> event_rewriter_filter_; |
467 | 463 |
468 // An event filter that pre-handles key events while the partial | 464 // An event filter that pre-handles key events while the partial |
469 // screenshot UI or the keyboard overlay is active. | 465 // screenshot UI or the keyboard overlay is active. |
470 scoped_ptr<internal::OverlayEventFilter> overlay_filter_; | 466 scoped_ptr<internal::OverlayEventFilter> overlay_filter_; |
471 | 467 |
472 // An event filter which handles system level gestures | 468 // An event filter which handles system level gestures |
473 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; | 469 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 504 |
509 // Used by ash/shell. | 505 // Used by ash/shell. |
510 content::BrowserContext* browser_context_; | 506 content::BrowserContext* browser_context_; |
511 | 507 |
512 DISALLOW_COPY_AND_ASSIGN(Shell); | 508 DISALLOW_COPY_AND_ASSIGN(Shell); |
513 }; | 509 }; |
514 | 510 |
515 } // namespace ash | 511 } // namespace ash |
516 | 512 |
517 #endif // ASH_SHELL_H_ | 513 #endif // ASH_SHELL_H_ |
OLD | NEW |