| 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_globals_aura.h" | 5 #include "ash/wm/aura/wm_globals_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/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 void WmGlobalsAura::OnWindowActivated( | 160 void WmGlobalsAura::OnWindowActivated( |
| 161 aura::client::ActivationChangeObserver::ActivationReason reason, | 161 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 162 aura::Window* gained_active, | 162 aura::Window* gained_active, |
| 163 aura::Window* lost_active) { | 163 aura::Window* lost_active) { |
| 164 FOR_EACH_OBSERVER(WmActivationObserver, activation_observers_, | 164 FOR_EACH_OBSERVER(WmActivationObserver, activation_observers_, |
| 165 OnWindowActivated(WmWindowAura::Get(gained_active), | 165 OnWindowActivated(WmWindowAura::Get(gained_active), |
| 166 WmWindowAura::Get(lost_active))); | 166 WmWindowAura::Get(lost_active))); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void WmGlobalsAura::OnDisplayConfigurationChanging() { |
| 170 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 171 OnDisplayConfigurationChanging()); |
| 172 } |
| 173 |
| 169 void WmGlobalsAura::OnDisplayConfigurationChanged() { | 174 void WmGlobalsAura::OnDisplayConfigurationChanged() { |
| 170 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 175 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 171 OnDisplayConfigurationChanged()); | 176 OnDisplayConfigurationChanged()); |
| 172 } | 177 } |
| 173 | 178 |
| 174 void WmGlobalsAura::OnOverviewModeEnded() { | 179 void WmGlobalsAura::OnOverviewModeEnded() { |
| 175 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_, | 180 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_, |
| 176 OnOverviewModeEnded()); | 181 OnOverviewModeEnded()); |
| 177 } | 182 } |
| 178 | 183 |
| 179 } // namespace wm | 184 } // namespace wm |
| 180 } // namespace ash | 185 } // namespace ash |
| OLD | NEW |