| 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_shell_aura.h" | 5 #include "ash/aura/wm_shell_aura.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/aura/pointer_watcher_adapter.h" | 9 #include "ash/aura/pointer_watcher_adapter.h" |
| 10 #include "ash/aura/wm_window_aura.h" | 10 #include "ash/aura/wm_window_aura.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 display::Display WmShellAura::GetFirstDisplay() const { | 122 display::Display WmShellAura::GetFirstDisplay() const { |
| 123 return Shell::GetInstance() | 123 return Shell::GetInstance() |
| 124 ->display_manager() | 124 ->display_manager() |
| 125 ->software_mirroring_display_list()[0]; | 125 ->software_mirroring_display_list()[0]; |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool WmShellAura::IsInUnifiedMode() const { | 128 bool WmShellAura::IsInUnifiedMode() const { |
| 129 return Shell::GetInstance()->display_manager()->IsInUnifiedMode(); | 129 return Shell::GetInstance()->display_manager()->IsInUnifiedMode(); |
| 130 } | 130 } |
| 131 | 131 |
| 132 bool WmShellAura::IsInUnifiedModeIgnoreMirroring() const { |
| 133 return Shell::GetInstance() |
| 134 ->display_manager() |
| 135 ->current_default_multi_display_mode() == DisplayManager::UNIFIED; |
| 136 } |
| 137 |
| 132 bool WmShellAura::IsForceMaximizeOnFirstRun() { | 138 bool WmShellAura::IsForceMaximizeOnFirstRun() { |
| 133 return delegate()->IsForceMaximizeOnFirstRun(); | 139 return delegate()->IsForceMaximizeOnFirstRun(); |
| 134 } | 140 } |
| 135 | 141 |
| 136 void WmShellAura::SetDisplayWorkAreaInsets(WmWindow* window, | 142 void WmShellAura::SetDisplayWorkAreaInsets(WmWindow* window, |
| 137 const gfx::Insets& insets) { | 143 const gfx::Insets& insets) { |
| 138 aura::Window* aura_window = WmWindowAura::GetAuraWindow(window); | 144 aura::Window* aura_window = WmWindowAura::GetAuraWindow(window); |
| 139 Shell::GetInstance()->SetDisplayWorkAreaInsets(aura_window, insets); | 145 Shell::GetInstance()->SetDisplayWorkAreaInsets(aura_window, insets); |
| 140 } | 146 } |
| 141 | 147 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 310 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 305 OnDisplayConfigurationChanging()); | 311 OnDisplayConfigurationChanging()); |
| 306 } | 312 } |
| 307 | 313 |
| 308 void WmShellAura::OnDisplayConfigurationChanged() { | 314 void WmShellAura::OnDisplayConfigurationChanged() { |
| 309 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 315 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 310 OnDisplayConfigurationChanged()); | 316 OnDisplayConfigurationChanged()); |
| 311 } | 317 } |
| 312 | 318 |
| 313 } // namespace ash | 319 } // namespace ash |
| OLD | NEW |