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 26 matching lines...) Expand all Loading... |
37 class ScopedCaptureClient; | 37 class ScopedCaptureClient; |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 namespace keyboard { | 41 namespace keyboard { |
42 class KeyboardController; | 42 class KeyboardController; |
43 } | 43 } |
44 | 44 |
45 namespace ash { | 45 namespace ash { |
46 class ShelfWidget; | 46 class ShelfWidget; |
47 class SoloWindowTracker; | |
48 class StackingController; | 47 class StackingController; |
49 class SystemTray; | 48 class SystemTray; |
50 class ToplevelWindowEventHandler; | 49 class ToplevelWindowEventHandler; |
51 | 50 |
52 namespace internal { | 51 namespace internal { |
53 | 52 |
54 class AlwaysOnTopController; | 53 class AlwaysOnTopController; |
55 class AnimatingDesktopController; | 54 class AnimatingDesktopController; |
56 class DesktopBackgroundWidgetController; | 55 class DesktopBackgroundWidgetController; |
57 class DockedWindowLayoutManager; | 56 class DockedWindowLayoutManager; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 DesktopBackgroundWidgetController* wallpaper_controller() { | 147 DesktopBackgroundWidgetController* wallpaper_controller() { |
149 return wallpaper_controller_.get(); | 148 return wallpaper_controller_.get(); |
150 } | 149 } |
151 void SetWallpaperController(DesktopBackgroundWidgetController* controller); | 150 void SetWallpaperController(DesktopBackgroundWidgetController* controller); |
152 AnimatingDesktopController* animating_wallpaper_controller() { | 151 AnimatingDesktopController* animating_wallpaper_controller() { |
153 return animating_wallpaper_controller_.get(); | 152 return animating_wallpaper_controller_.get(); |
154 } | 153 } |
155 void SetAnimatingWallpaperController(AnimatingDesktopController* controller); | 154 void SetAnimatingWallpaperController(AnimatingDesktopController* controller); |
156 | 155 |
157 SoloWindowTracker* solo_window_tracker() { | |
158 return solo_window_tracker_.get(); | |
159 } | |
160 | |
161 // Access the shelf layout manager associated with this root | 156 // Access the shelf layout manager associated with this root |
162 // window controller, NULL if no such shelf exists. | 157 // window controller, NULL if no such shelf exists. |
163 ShelfLayoutManager* GetShelfLayoutManager(); | 158 ShelfLayoutManager* GetShelfLayoutManager(); |
164 | 159 |
165 // Returns the system tray on this root window. Note that | 160 // Returns the system tray on this root window. Note that |
166 // calling this on the root window that doesn't have a shelf will | 161 // calling this on the root window that doesn't have a shelf will |
167 // lead to a crash. | 162 // lead to a crash. |
168 SystemTray* GetSystemTray(); | 163 SystemTray* GetSystemTray(); |
169 | 164 |
170 // Shows context menu at the |location_in_screen|. This uses | 165 // Shows context menu at the |location_in_screen|. This uses |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 scoped_ptr<ToplevelWindowEventHandler> default_container_handler_; | 301 scoped_ptr<ToplevelWindowEventHandler> default_container_handler_; |
307 scoped_ptr<ToplevelWindowEventHandler> always_on_top_container_handler_; | 302 scoped_ptr<ToplevelWindowEventHandler> always_on_top_container_handler_; |
308 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_; | 303 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_; |
309 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; | 304 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; |
310 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_; | 305 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_; |
311 scoped_ptr<ToplevelWindowEventHandler> docked_container_handler_; | 306 scoped_ptr<ToplevelWindowEventHandler> docked_container_handler_; |
312 | 307 |
313 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; | 308 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; |
314 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; | 309 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; |
315 scoped_ptr<views::corewm::ScopedCaptureClient> capture_client_; | 310 scoped_ptr<views::corewm::ScopedCaptureClient> capture_client_; |
316 scoped_ptr<SoloWindowTracker> solo_window_tracker_; | |
317 | 311 |
318 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 312 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
319 }; | 313 }; |
320 | 314 |
321 | 315 |
322 // Gets the RootWindowController for |root_window|. | 316 // Gets the RootWindowController for |root_window|. |
323 ASH_EXPORT RootWindowController* GetRootWindowController( | 317 ASH_EXPORT RootWindowController* GetRootWindowController( |
324 const aura::Window* root_window); | 318 const aura::Window* root_window); |
325 | 319 |
326 } // namespace internal | 320 } // namespace internal |
327 } // ash | 321 } // ash |
328 | 322 |
329 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 323 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |