Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Side by Side Diff: ash/root_window_controller.h

Issue 2623393002: Revert of Moves definitions of RootWindowController into root_window_controller.cc (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
309 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|. 313 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|.
310 // The initial color is determined by the |root_window_type| and whether or 314 // The initial color is determined by the |root_window_type| and whether or
311 // not this is the first boot. 315 // not this is the first boot.
312 void CreateSystemWallpaper(RootWindowType root_window_type); 316 void CreateSystemWallpaper(RootWindowType root_window_type);
313 317
314 // Enables projection touch HUD. 318 // Enables projection touch HUD.
315 void EnableTouchHudProjection(); 319 void EnableTouchHudProjection();
316 320
317 // Disables projection touch HUD. 321 // Disables projection touch HUD.
318 void DisableTouchHudProjection(); 322 void DisableTouchHudProjection();
319 323
320 // Resets WmShell::GetRootWindowForNewWindows() if appropriate. This is called 324 // Resets WmShell::GetRootWindowForNewWindows() if appropriate. This is called
321 // during shutdown to make sure GetRootWindowForNewWindows() isn't referencing 325 // during shutdown to make sure GetRootWindowForNewWindows() isn't referencing
322 // this. 326 // this.
323 void ResetRootForNewWindowsIfNecessary(); 327 void ResetRootForNewWindowsIfNecessary();
324 328
325 // Callback for MenuModelAdapter. 329 // Callback for MenuModelAdapter.
326 void OnMenuClosed(); 330 void OnMenuClosed();
327 331
328 // Overridden from ShellObserver. 332 // Overridden from ShellObserver.
329 void OnLoginStateChanged(LoginStatus status) override; 333 void OnLoginStateChanged(LoginStatus status) override;
330 void OnTouchHudProjectionToggled(bool enabled) override; 334 void OnTouchHudProjectionToggled(bool enabled) override;
331 335
336 // TODO(sky): temporary, fold into CloseChildWindows().
337 void CloseChildWindowsImpl();
338
332 std::unique_ptr<AshWindowTreeHost> ash_host_; 339 std::unique_ptr<AshWindowTreeHost> ash_host_;
333 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_; 340 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_;
334 // This comes from |ash_host_| or |mus_window_tree_host_|. 341 // This comes from |ash_host_| or |mus_window_tree_host_|.
335 aura::WindowTreeHost* window_tree_host_; 342 aura::WindowTreeHost* window_tree_host_;
336 343
337 // LayoutManagers are owned by the window they are installed on. 344 // LayoutManagers are owned by the window they are installed on.
338 DockedWindowLayoutManager* docked_window_layout_manager_ = nullptr; 345 DockedWindowLayoutManager* docked_window_layout_manager_ = nullptr;
339 PanelLayoutManager* panel_layout_manager_ = nullptr; 346 PanelLayoutManager* panel_layout_manager_ = nullptr;
340 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr; 347 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr;
341 348
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 387
381 // On classic ash, returns the RootWindowController for the given |root_window|. 388 // On classic ash, returns the RootWindowController for the given |root_window|.
382 // On mus ash, returns the RootWindowController for the primary display. 389 // On mus ash, returns the RootWindowController for the primary display.
383 // See RootWindowController class comment above. 390 // See RootWindowController class comment above.
384 ASH_EXPORT RootWindowController* GetRootWindowController( 391 ASH_EXPORT RootWindowController* GetRootWindowController(
385 const aura::Window* root_window); 392 const aura::Window* root_window);
386 393
387 } // namespace ash 394 } // namespace ash
388 395
389 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 396 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698