| 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 #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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "base/time/time.h" | 58 #include "base/time/time.h" |
| 59 #include "ui/aura/client/aura_constants.h" | 59 #include "ui/aura/client/aura_constants.h" |
| 60 #include "ui/aura/client/screen_position_client.h" | 60 #include "ui/aura/client/screen_position_client.h" |
| 61 #include "ui/aura/window.h" | 61 #include "ui/aura/window.h" |
| 62 #include "ui/aura/window_delegate.h" | 62 #include "ui/aura/window_delegate.h" |
| 63 #include "ui/aura/window_event_dispatcher.h" | 63 #include "ui/aura/window_event_dispatcher.h" |
| 64 #include "ui/aura/window_observer.h" | 64 #include "ui/aura/window_observer.h" |
| 65 #include "ui/aura/window_tracker.h" | 65 #include "ui/aura/window_tracker.h" |
| 66 #include "ui/base/hit_test.h" | 66 #include "ui/base/hit_test.h" |
| 67 #include "ui/base/models/menu_model.h" | 67 #include "ui/base/models/menu_model.h" |
| 68 #include "ui/gfx/display.h" | 68 #include "ui/display/display.h" |
| 69 #include "ui/gfx/screen.h" | 69 #include "ui/display/screen.h" |
| 70 #include "ui/keyboard/keyboard_controller.h" | 70 #include "ui/keyboard/keyboard_controller.h" |
| 71 #include "ui/keyboard/keyboard_util.h" | 71 #include "ui/keyboard/keyboard_util.h" |
| 72 #include "ui/views/controls/menu/menu_runner.h" | 72 #include "ui/views/controls/menu/menu_runner.h" |
| 73 #include "ui/views/view_model.h" | 73 #include "ui/views/view_model.h" |
| 74 #include "ui/views/view_model_utils.h" | 74 #include "ui/views/view_model_utils.h" |
| 75 #include "ui/wm/core/capture_controller.h" | 75 #include "ui/wm/core/capture_controller.h" |
| 76 #include "ui/wm/core/easy_resize_window_targeter.h" | 76 #include "ui/wm/core/easy_resize_window_targeter.h" |
| 77 #include "ui/wm/core/visibility_controller.h" | 77 #include "ui/wm/core/visibility_controller.h" |
| 78 #include "ui/wm/core/window_util.h" | 78 #include "ui/wm/core/window_util.h" |
| 79 #include "ui/wm/public/drag_drop_client.h" | 79 #include "ui/wm/public/drag_drop_client.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 ? NULL | 390 ? NULL |
| 391 : Shell::GetPrimaryRootWindow()); | 391 : Shell::GetPrimaryRootWindow()); |
| 392 } | 392 } |
| 393 | 393 |
| 394 CloseChildWindows(); | 394 CloseChildWindows(); |
| 395 GetRootWindowSettings(root_window)->controller = NULL; | 395 GetRootWindowSettings(root_window)->controller = NULL; |
| 396 workspace_controller_.reset(); | 396 workspace_controller_.reset(); |
| 397 // Forget with the display ID so that display lookup | 397 // Forget with the display ID so that display lookup |
| 398 // ends up with invalid display. | 398 // ends up with invalid display. |
| 399 GetRootWindowSettings(root_window)->display_id = | 399 GetRootWindowSettings(root_window)->display_id = |
| 400 gfx::Display::kInvalidDisplayID; | 400 display::Display::kInvalidDisplayID; |
| 401 ash_host_->PrepareForShutdown(); | 401 ash_host_->PrepareForShutdown(); |
| 402 | 402 |
| 403 system_background_.reset(); | 403 system_background_.reset(); |
| 404 aura::client::SetScreenPositionClient(root_window, NULL); | 404 aura::client::SetScreenPositionClient(root_window, NULL); |
| 405 } | 405 } |
| 406 | 406 |
| 407 SystemModalContainerLayoutManager* | 407 SystemModalContainerLayoutManager* |
| 408 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) { | 408 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) { |
| 409 aura::Window* modal_container = NULL; | 409 aura::Window* modal_container = NULL; |
| 410 if (window) { | 410 if (window) { |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 else | 1087 else |
| 1088 DisableTouchHudProjection(); | 1088 DisableTouchHudProjection(); |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 RootWindowController* GetRootWindowController( | 1091 RootWindowController* GetRootWindowController( |
| 1092 const aura::Window* root_window) { | 1092 const aura::Window* root_window) { |
| 1093 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; | 1093 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 } // namespace ash | 1096 } // namespace ash |
| OLD | NEW |