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