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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 aura::WindowTreeHost* window_tree_host); | 299 aura::WindowTreeHost* window_tree_host); |
300 | 300 |
301 // Initializes the RootWindowController based on |root_window_type|. | 301 // Initializes the RootWindowController based on |root_window_type|. |
302 void Init(RootWindowType root_window_type); | 302 void Init(RootWindowType root_window_type); |
303 | 303 |
304 void InitLayoutManagers(); | 304 void InitLayoutManagers(); |
305 | 305 |
306 // Creates the containers (WmWindows) used by the shell. | 306 // Creates the containers (WmWindows) used by the shell. |
307 void CreateContainers(); | 307 void CreateContainers(); |
308 | 308 |
309 // Creates the LayoutManagers for the windows created by CreateContainers(). | |
310 // TODO(sky): merge this with InitLayoutManagers(). | |
311 void CreateLayoutManagers(); | |
312 | |
313 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|. | 309 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|. |
314 // The initial color is determined by the |root_window_type| and whether or | 310 // The initial color is determined by the |root_window_type| and whether or |
315 // not this is the first boot. | 311 // not this is the first boot. |
316 void CreateSystemWallpaper(RootWindowType root_window_type); | 312 void CreateSystemWallpaper(RootWindowType root_window_type); |
317 | 313 |
318 // Enables projection touch HUD. | 314 // Enables projection touch HUD. |
319 void EnableTouchHudProjection(); | 315 void EnableTouchHudProjection(); |
320 | 316 |
321 // Disables projection touch HUD. | 317 // Disables projection touch HUD. |
322 void DisableTouchHudProjection(); | 318 void DisableTouchHudProjection(); |
323 | 319 |
324 // Resets WmShell::GetRootWindowForNewWindows() if appropriate. This is called | 320 // Resets WmShell::GetRootWindowForNewWindows() if appropriate. This is called |
325 // during shutdown to make sure GetRootWindowForNewWindows() isn't referencing | 321 // during shutdown to make sure GetRootWindowForNewWindows() isn't referencing |
326 // this. | 322 // this. |
327 void ResetRootForNewWindowsIfNecessary(); | 323 void ResetRootForNewWindowsIfNecessary(); |
328 | 324 |
329 // Callback for MenuModelAdapter. | 325 // Callback for MenuModelAdapter. |
330 void OnMenuClosed(); | 326 void OnMenuClosed(); |
331 | 327 |
332 // Overridden from ShellObserver. | 328 // Overridden from ShellObserver. |
333 void OnLoginStateChanged(LoginStatus status) override; | 329 void OnLoginStateChanged(LoginStatus status) override; |
334 void OnTouchHudProjectionToggled(bool enabled) override; | 330 void OnTouchHudProjectionToggled(bool enabled) override; |
335 | 331 |
336 // TODO(sky): temporary, fold into CloseChildWindows(). | |
337 void CloseChildWindowsImpl(); | |
338 | |
339 std::unique_ptr<AshWindowTreeHost> ash_host_; | 332 std::unique_ptr<AshWindowTreeHost> ash_host_; |
340 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_; | 333 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_; |
341 // This comes from |ash_host_| or |mus_window_tree_host_|. | 334 // This comes from |ash_host_| or |mus_window_tree_host_|. |
342 aura::WindowTreeHost* window_tree_host_; | 335 aura::WindowTreeHost* window_tree_host_; |
343 | 336 |
344 // LayoutManagers are owned by the window they are installed on. | 337 // LayoutManagers are owned by the window they are installed on. |
345 DockedWindowLayoutManager* docked_window_layout_manager_ = nullptr; | 338 DockedWindowLayoutManager* docked_window_layout_manager_ = nullptr; |
346 PanelLayoutManager* panel_layout_manager_ = nullptr; | 339 PanelLayoutManager* panel_layout_manager_ = nullptr; |
347 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr; | 340 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr; |
348 | 341 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 380 |
388 // On classic ash, returns the RootWindowController for the given |root_window|. | 381 // On classic ash, returns the RootWindowController for the given |root_window|. |
389 // On mus ash, returns the RootWindowController for the primary display. | 382 // On mus ash, returns the RootWindowController for the primary display. |
390 // See RootWindowController class comment above. | 383 // See RootWindowController class comment above. |
391 ASH_EXPORT RootWindowController* GetRootWindowController( | 384 ASH_EXPORT RootWindowController* GetRootWindowController( |
392 const aura::Window* root_window); | 385 const aura::Window* root_window); |
393 | 386 |
394 } // namespace ash | 387 } // namespace ash |
395 | 388 |
396 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 389 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |