| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 } | 382 } |
| 383 | 383 |
| 384 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() { | 384 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() { |
| 385 return wm_shelf_->shelf_layout_manager(); | 385 return wm_shelf_->shelf_layout_manager(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 SystemModalContainerLayoutManager* | 388 SystemModalContainerLayoutManager* |
| 389 RootWindowController::GetSystemModalLayoutManager(WmWindow* window) { | 389 RootWindowController::GetSystemModalLayoutManager(WmWindow* window) { |
| 390 WmWindow* modal_container = nullptr; | 390 WmWindow* modal_container = nullptr; |
| 391 if (window) { | 391 if (window) { |
| 392 WmWindow* window_container = wm::GetContainerForWindow(window); | 392 aura::Window* window_container = |
| 393 if (window_container && window_container->aura_window()->id() >= | 393 wm::GetContainerForWindow(window->aura_window()); |
| 394 kShellWindowId_LockScreenContainer) { | 394 if (window_container && |
| 395 window_container->id() >= kShellWindowId_LockScreenContainer) { |
| 395 modal_container = GetWmContainer(kShellWindowId_LockSystemModalContainer); | 396 modal_container = GetWmContainer(kShellWindowId_LockSystemModalContainer); |
| 396 } else { | 397 } else { |
| 397 modal_container = GetWmContainer(kShellWindowId_SystemModalContainer); | 398 modal_container = GetWmContainer(kShellWindowId_SystemModalContainer); |
| 398 } | 399 } |
| 399 } else { | 400 } else { |
| 400 int modal_window_id = | 401 int modal_window_id = |
| 401 Shell::Get()->session_controller()->IsUserSessionBlocked() | 402 Shell::Get()->session_controller()->IsUserSessionBlocked() |
| 402 ? kShellWindowId_LockSystemModalContainer | 403 ? kShellWindowId_LockSystemModalContainer |
| 403 : kShellWindowId_SystemModalContainer; | 404 : kShellWindowId_SystemModalContainer; |
| 404 modal_container = GetWmContainer(modal_window_id); | 405 modal_container = GetWmContainer(modal_window_id); |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 EnableTouchHudProjection(); | 1112 EnableTouchHudProjection(); |
| 1112 else | 1113 else |
| 1113 DisableTouchHudProjection(); | 1114 DisableTouchHudProjection(); |
| 1114 } | 1115 } |
| 1115 | 1116 |
| 1116 RootWindowController* GetRootWindowController(const aura::Window* root_window) { | 1117 RootWindowController* GetRootWindowController(const aura::Window* root_window) { |
| 1117 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; | 1118 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; |
| 1118 } | 1119 } |
| 1119 | 1120 |
| 1120 } // namespace ash | 1121 } // namespace ash |
| OLD | NEW |