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

Side by Side Diff: ash/root_window_controller.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/magnifier/partial_magnification_controller.cc ('k') | ash/shell.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 #include "ash/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_constants.h" 10 #include "ash/ash_constants.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "ash/wm/system_modal_container_layout_manager.h" 42 #include "ash/wm/system_modal_container_layout_manager.h"
43 #include "ash/wm/window_properties.h" 43 #include "ash/wm/window_properties.h"
44 #include "ash/wm/window_state.h" 44 #include "ash/wm/window_state.h"
45 #include "ash/wm/window_util.h" 45 #include "ash/wm/window_util.h"
46 #include "ash/wm/workspace/workspace_layout_manager.h" 46 #include "ash/wm/workspace/workspace_layout_manager.h"
47 #include "ash/wm/workspace_controller.h" 47 #include "ash/wm/workspace_controller.h"
48 #include "base/command_line.h" 48 #include "base/command_line.h"
49 #include "base/time/time.h" 49 #include "base/time/time.h"
50 #include "ui/aura/client/aura_constants.h" 50 #include "ui/aura/client/aura_constants.h"
51 #include "ui/aura/client/drag_drop_client.h" 51 #include "ui/aura/client/drag_drop_client.h"
52 #include "ui/aura/client/screen_position_client.h"
52 #include "ui/aura/client/tooltip_client.h" 53 #include "ui/aura/client/tooltip_client.h"
53 #include "ui/aura/window.h" 54 #include "ui/aura/window.h"
54 #include "ui/aura/window_delegate.h" 55 #include "ui/aura/window_delegate.h"
55 #include "ui/aura/window_event_dispatcher.h" 56 #include "ui/aura/window_event_dispatcher.h"
56 #include "ui/aura/window_observer.h" 57 #include "ui/aura/window_observer.h"
57 #include "ui/aura/window_tracker.h" 58 #include "ui/aura/window_tracker.h"
58 #include "ui/base/hit_test.h" 59 #include "ui/base/hit_test.h"
59 #include "ui/base/models/menu_model.h" 60 #include "ui/base/models/menu_model.h"
60 #include "ui/gfx/display.h" 61 #include "ui/gfx/display.h"
61 #include "ui/gfx/screen.h" 62 #include "ui/gfx/screen.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 screen_dimmer_.reset(); 351 screen_dimmer_.reset();
351 workspace_controller_.reset(); 352 workspace_controller_.reset();
352 // Forget with the display ID so that display lookup 353 // Forget with the display ID so that display lookup
353 // ends up with invalid display. 354 // ends up with invalid display.
354 internal::GetRootWindowSettings(root_window())->display_id = 355 internal::GetRootWindowSettings(root_window())->display_id =
355 gfx::Display::kInvalidDisplayID; 356 gfx::Display::kInvalidDisplayID;
356 // And this root window should no longer process events. 357 // And this root window should no longer process events.
357 dispatcher()->PrepareForShutdown(); 358 dispatcher()->PrepareForShutdown();
358 359
359 system_background_.reset(); 360 system_background_.reset();
361 aura::client::SetScreenPositionClient(root_window(), NULL);
360 } 362 }
361 363
362 SystemModalContainerLayoutManager* 364 SystemModalContainerLayoutManager*
363 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) { 365 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) {
364 aura::Window* modal_container = NULL; 366 aura::Window* modal_container = NULL;
365 if (window) { 367 if (window) {
366 aura::Window* window_container = GetContainerForWindow(window); 368 aura::Window* window_container = GetContainerForWindow(window);
367 if (window_container && 369 if (window_container &&
368 window_container->id() >= kShellWindowId_LockScreenContainer) { 370 window_container->id() >= kShellWindowId_LockScreenContainer) {
369 modal_container = GetContainer(kShellWindowId_LockSystemModalContainer); 371 modal_container = GetContainer(kShellWindowId_LockSystemModalContainer);
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 DisableTouchHudProjection(); 993 DisableTouchHudProjection();
992 } 994 }
993 995
994 RootWindowController* GetRootWindowController( 996 RootWindowController* GetRootWindowController(
995 const aura::Window* root_window) { 997 const aura::Window* root_window) {
996 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 998 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
997 } 999 }
998 1000
999 } // namespace internal 1001 } // namespace internal
1000 } // namespace ash 1002 } // namespace ash
OLDNEW
« no previous file with comments | « ash/magnifier/partial_magnification_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698