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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 // Returns the RootWindowController of the target root window. | 106 // Returns the RootWindowController of the target root window. |
107 static internal::RootWindowController* ForTargetRootWindow(); | 107 static internal::RootWindowController* ForTargetRootWindow(); |
108 | 108 |
109 // Returns container which contains a given |window|. | 109 // Returns container which contains a given |window|. |
110 static aura::Window* GetContainerForWindow(aura::Window* window); | 110 static aura::Window* GetContainerForWindow(aura::Window* window); |
111 | 111 |
112 virtual ~RootWindowController(); | 112 virtual ~RootWindowController(); |
113 | 113 |
114 aura::Window* root_window() { return dispatcher()->window(); } | 114 aura::Window* root_window() { return dispatcher()->window(); } |
| 115 const aura::Window* root_window() const { return dispatcher()->window(); } |
| 116 |
115 aura::WindowEventDispatcher* dispatcher() { return dispatcher_.get(); } | 117 aura::WindowEventDispatcher* dispatcher() { return dispatcher_.get(); } |
| 118 const aura::WindowEventDispatcher* dispatcher() const { |
| 119 return dispatcher_.get(); |
| 120 } |
116 | 121 |
117 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } | 122 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } |
118 | 123 |
119 WorkspaceController* workspace_controller() { | 124 WorkspaceController* workspace_controller() { |
120 return workspace_controller_.get(); | 125 return workspace_controller_.get(); |
121 } | 126 } |
122 | 127 |
123 AlwaysOnTopController* always_on_top_controller() { | 128 AlwaysOnTopController* always_on_top_controller() { |
124 return always_on_top_controller_.get(); | 129 return always_on_top_controller_.get(); |
125 } | 130 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 319 |
315 | 320 |
316 // Gets the RootWindowController for |root_window|. | 321 // Gets the RootWindowController for |root_window|. |
317 ASH_EXPORT RootWindowController* GetRootWindowController( | 322 ASH_EXPORT RootWindowController* GetRootWindowController( |
318 const aura::Window* root_window); | 323 const aura::Window* root_window); |
319 | 324 |
320 } // namespace internal | 325 } // namespace internal |
321 } // ash | 326 } // ash |
322 | 327 |
323 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 328 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |