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 static internal::RootWindowController* ForTargetRootWindow(); | 105 static internal::RootWindowController* ForTargetRootWindow(); |
106 | 106 |
107 // Returns container which contains a given |window|. | 107 // Returns container which contains a given |window|. |
108 static aura::Window* GetContainerForWindow(aura::Window* window); | 108 static aura::Window* GetContainerForWindow(aura::Window* window); |
109 | 109 |
110 virtual ~RootWindowController(); | 110 virtual ~RootWindowController(); |
111 | 111 |
112 aura::Window* root_window() { return dispatcher()->window(); } | 112 aura::Window* root_window() { return dispatcher()->window(); } |
113 aura::WindowEventDispatcher* dispatcher() { return root_window_.get(); } | 113 aura::WindowEventDispatcher* dispatcher() { return root_window_.get(); } |
114 | 114 |
115 const aura::Window* root_window() const { return dispatcher()->window(); } | |
116 const aura::WindowEventDispatcher* dispatcher() const { | |
117 return root_window_.get(); | |
118 } | |
oshima
2014/02/10 19:21:06
can you group by method name instead?
flackr
2014/02/10 21:45:28
Done.
| |
119 | |
115 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } | 120 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } |
116 | 121 |
117 WorkspaceController* workspace_controller() { | 122 WorkspaceController* workspace_controller() { |
118 return workspace_controller_.get(); | 123 return workspace_controller_.get(); |
119 } | 124 } |
120 | 125 |
121 AlwaysOnTopController* always_on_top_controller() { | 126 AlwaysOnTopController* always_on_top_controller() { |
122 return always_on_top_controller_.get(); | 127 return always_on_top_controller_.get(); |
123 } | 128 } |
124 | 129 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 | 317 |
313 | 318 |
314 // Gets the RootWindowController for |root_window|. | 319 // Gets the RootWindowController for |root_window|. |
315 ASH_EXPORT RootWindowController* GetRootWindowController( | 320 ASH_EXPORT RootWindowController* GetRootWindowController( |
316 const aura::Window* root_window); | 321 const aura::Window* root_window); |
317 | 322 |
318 } // namespace internal | 323 } // namespace internal |
319 } // ash | 324 } // ash |
320 | 325 |
321 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |