| 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/aura/wm_root_window_controller_aura.h" | 5 #include "ash/aura/wm_root_window_controller_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/wm_shelf_aura.h" | 7 #include "ash/aura/wm_shelf_aura.h" |
| 8 #include "ash/aura/wm_shell_aura.h" | 8 #include "ash/aura/wm_shell_aura.h" |
| 9 #include "ash/aura/wm_window_aura.h" | 9 #include "ash/aura/wm_window_aura.h" |
| 10 #include "ash/common/shelf/shelf_widget.h" | 10 #include "ash/common/shelf/shelf_widget.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 root_window_controller->GetRootWindow()->GetProperty( | 60 root_window_controller->GetRootWindow()->GetProperty( |
| 61 kWmRootWindowControllerKey); | 61 kWmRootWindowControllerKey); |
| 62 if (wm_root_window_controller) | 62 if (wm_root_window_controller) |
| 63 return wm_root_window_controller; | 63 return wm_root_window_controller; |
| 64 | 64 |
| 65 // WmRootWindowControllerAura is owned by the RootWindowController's window. | 65 // WmRootWindowControllerAura is owned by the RootWindowController's window. |
| 66 return new WmRootWindowControllerAura(root_window_controller); | 66 return new WmRootWindowControllerAura(root_window_controller); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool WmRootWindowControllerAura::HasShelf() { | 69 bool WmRootWindowControllerAura::HasShelf() { |
| 70 return root_window_controller_->shelf_widget() != nullptr; | 70 return root_window_controller_->wm_shelf_aura()->shelf_widget() != nullptr; |
| 71 } | 71 } |
| 72 | 72 |
| 73 WmShell* WmRootWindowControllerAura::GetShell() { | 73 WmShell* WmRootWindowControllerAura::GetShell() { |
| 74 return WmShell::Get(); | 74 return WmShell::Get(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() { | 77 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() { |
| 78 return root_window_controller_->always_on_top_controller(); | 78 return root_window_controller_->always_on_top_controller(); |
| 79 } | 79 } |
| 80 | 80 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 const display::Display& display) {} | 131 const display::Display& display) {} |
| 132 | 132 |
| 133 void WmRootWindowControllerAura::OnDisplayMetricsChanged( | 133 void WmRootWindowControllerAura::OnDisplayMetricsChanged( |
| 134 const display::Display& display, | 134 const display::Display& display, |
| 135 uint32_t metrics) { | 135 uint32_t metrics) { |
| 136 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, *observers(), | 136 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, *observers(), |
| 137 OnWorkAreaChanged()); | 137 OnWorkAreaChanged()); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace ash | 140 } // namespace ash |
| OLD | NEW |