| 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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 class Widget; | 40 class Widget; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace wm { | 43 namespace wm { |
| 44 class InputMethodEventFilter; | 44 class InputMethodEventFilter; |
| 45 class RootWindowEventFilter; | 45 class RootWindowEventFilter; |
| 46 class ScopedCaptureClient; | 46 class ScopedCaptureClient; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace ash { | 49 namespace ash { |
| 50 class ShelfWidget; | |
| 51 class StackingController; | |
| 52 class SystemTray; | |
| 53 | |
| 54 namespace internal { | |
| 55 | |
| 56 class AlwaysOnTopController; | 50 class AlwaysOnTopController; |
| 57 class AnimatingDesktopController; | 51 class AnimatingDesktopController; |
| 58 class DesktopBackgroundWidgetController; | 52 class DesktopBackgroundWidgetController; |
| 59 class DockedWindowLayoutManager; | 53 class DockedWindowLayoutManager; |
| 60 class PanelLayoutManager; | 54 class PanelLayoutManager; |
| 61 class RootWindowLayoutManager; | 55 class RootWindowLayoutManager; |
| 62 class ScreenDimmer; | 56 class ScreenDimmer; |
| 63 class ShelfLayoutManager; | 57 class ShelfLayoutManager; |
| 58 class ShelfWidget; |
| 59 class StackingController; |
| 64 class StatusAreaWidget; | 60 class StatusAreaWidget; |
| 65 class SystemBackgroundController; | 61 class SystemBackgroundController; |
| 66 class SystemModalContainerLayoutManager; | 62 class SystemModalContainerLayoutManager; |
| 63 class SystemTray; |
| 67 class TouchHudDebug; | 64 class TouchHudDebug; |
| 68 class TouchHudProjection; | 65 class TouchHudProjection; |
| 69 class WorkspaceController; | 66 class WorkspaceController; |
| 70 | 67 |
| 71 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
| 72 class BootSplashScreen; | 69 class BootSplashScreen; |
| 73 #endif | 70 #endif |
| 74 | 71 |
| 75 // This class maintains the per root window state for ash. This class | 72 // This class maintains the per root window state for ash. This class |
| 76 // owns the root window and other dependent objects that should be | 73 // owns the root window and other dependent objects that should be |
| (...skipping 18 matching lines...) Expand all Loading... |
| 95 // Returns a RootWindowController that has a shelf for given | 92 // Returns a RootWindowController that has a shelf for given |
| 96 // |window|. This returns the RootWindowController for the |window|'s | 93 // |window|. This returns the RootWindowController for the |window|'s |
| 97 // root window when multiple shelf mode is enabled, or the primary | 94 // root window when multiple shelf mode is enabled, or the primary |
| 98 // RootWindowController otherwise. | 95 // RootWindowController otherwise. |
| 99 static RootWindowController* ForShelf(aura::Window* window); | 96 static RootWindowController* ForShelf(aura::Window* window); |
| 100 | 97 |
| 101 // Returns a RootWindowController of the window's root window. | 98 // Returns a RootWindowController of the window's root window. |
| 102 static RootWindowController* ForWindow(const aura::Window* window); | 99 static RootWindowController* ForWindow(const aura::Window* window); |
| 103 | 100 |
| 104 // Returns the RootWindowController of the target root window. | 101 // Returns the RootWindowController of the target root window. |
| 105 static internal::RootWindowController* ForTargetRootWindow(); | 102 static RootWindowController* ForTargetRootWindow(); |
| 106 | 103 |
| 107 // Returns container which contains a given |window|. | 104 // Returns container which contains a given |window|. |
| 108 static aura::Window* GetContainerForWindow(aura::Window* window); | 105 static aura::Window* GetContainerForWindow(aura::Window* window); |
| 109 | 106 |
| 110 virtual ~RootWindowController(); | 107 virtual ~RootWindowController(); |
| 111 | 108 |
| 112 aura::Window* root_window() { return host_->window(); } | 109 aura::Window* root_window() { return host_->window(); } |
| 113 const aura::Window* root_window() const { return host_->window(); } | 110 const aura::Window* root_window() const { return host_->window(); } |
| 114 aura::WindowTreeHost* host() { return host_.get(); } | 111 aura::WindowTreeHost* host() { return host_.get(); } |
| 115 const aura::WindowTreeHost* host() const { return host_.get(); } | 112 const aura::WindowTreeHost* host() const { return host_.get(); } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 scoped_ptr< ::wm::ScopedCaptureClient> capture_client_; | 310 scoped_ptr< ::wm::ScopedCaptureClient> capture_client_; |
| 314 | 311 |
| 315 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 312 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 316 }; | 313 }; |
| 317 | 314 |
| 318 | 315 |
| 319 // Gets the RootWindowController for |root_window|. | 316 // Gets the RootWindowController for |root_window|. |
| 320 ASH_EXPORT RootWindowController* GetRootWindowController( | 317 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 321 const aura::Window* root_window); | 318 const aura::Window* root_window); |
| 322 | 319 |
| 323 } // namespace internal | |
| 324 } // ash | 320 } // ash |
| 325 | 321 |
| 326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 322 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |