| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/wm/aura/wm_root_window_controller_aura.h" | 5 #include "ash/wm/aura/wm_root_window_controller_aura.h" |
| 6 | 6 |
| 7 #include "ash/display/window_tree_host_manager.h" | 7 #include "ash/display/window_tree_host_manager.h" |
| 8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/wm/aura/wm_globals_aura.h" | 10 #include "ash/wm/aura/wm_globals_aura.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() { | 71 WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() { |
| 72 return root_window_controller_->workspace_controller()->GetWindowState(); | 72 return root_window_controller_->workspace_controller()->GetWindowState(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 WmWindow* WmRootWindowControllerAura::GetWindow() { | 75 WmWindow* WmRootWindowControllerAura::GetWindow() { |
| 76 return WmWindowAura::Get(root_window_controller_->GetRootWindow()); | 76 return WmWindowAura::Get(root_window_controller_->GetRootWindow()); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void WmRootWindowControllerAura::ConfigureWidgetInitParamsForContainer( |
| 80 views::Widget* widget, |
| 81 int shell_container_id, |
| 82 views::Widget::InitParams* init_params) { |
| 83 init_params->parent = Shell::GetContainer( |
| 84 root_window_controller_->GetRootWindow(), shell_container_id); |
| 85 } |
| 79 } // namespace wm | 86 } // namespace wm |
| 80 } // namespace ash | 87 } // namespace ash |
| OLD | NEW |