| 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 "ash/aura/wm_window_aura.h" | 7 #include "ash/aura/wm_window_aura.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/shell_observer.h" | 9 #include "ash/common/shell_observer.h" |
| 10 #include "ash/common/wm/mru_window_tracker.h" | 10 #include "ash/common/wm/mru_window_tracker.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void WmShellAura::OnOverviewModeStarting() { | 127 void WmShellAura::OnOverviewModeStarting() { |
| 128 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_common_->shell_observers(), | 128 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_common_->shell_observers(), |
| 129 OnOverviewModeStarting()); | 129 OnOverviewModeStarting()); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void WmShellAura::OnOverviewModeEnded() { | 132 void WmShellAura::OnOverviewModeEnded() { |
| 133 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_common_->shell_observers(), | 133 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_common_->shell_observers(), |
| 134 OnOverviewModeEnded()); | 134 OnOverviewModeEnded()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 bool WmShellAura::IsOverviewModeSelecting() { | |
| 138 WindowSelectorController* window_selector_controller = | |
| 139 Shell::GetInstance()->window_selector_controller(); | |
| 140 return window_selector_controller && | |
| 141 window_selector_controller->IsSelecting(); | |
| 142 } | |
| 143 | |
| 144 bool WmShellAura::IsOverviewModeRestoringMinimizedWindows() { | |
| 145 WindowSelectorController* window_selector_controller = | |
| 146 Shell::GetInstance()->window_selector_controller(); | |
| 147 return window_selector_controller && | |
| 148 window_selector_controller->IsRestoringMinimizedWindows(); | |
| 149 } | |
| 150 | |
| 151 AccessibilityDelegate* WmShellAura::GetAccessibilityDelegate() { | 137 AccessibilityDelegate* WmShellAura::GetAccessibilityDelegate() { |
| 152 return Shell::GetInstance()->accessibility_delegate(); | 138 return Shell::GetInstance()->accessibility_delegate(); |
| 153 } | 139 } |
| 154 | 140 |
| 155 SessionStateDelegate* WmShellAura::GetSessionStateDelegate() { | 141 SessionStateDelegate* WmShellAura::GetSessionStateDelegate() { |
| 156 return Shell::GetInstance()->session_state_delegate(); | 142 return Shell::GetInstance()->session_state_delegate(); |
| 157 } | 143 } |
| 158 | 144 |
| 159 void WmShellAura::AddActivationObserver(WmActivationObserver* observer) { | 145 void WmShellAura::AddActivationObserver(WmActivationObserver* observer) { |
| 160 if (!added_activation_observer_) { | 146 if (!added_activation_observer_) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 211 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 226 OnDisplayConfigurationChanging()); | 212 OnDisplayConfigurationChanging()); |
| 227 } | 213 } |
| 228 | 214 |
| 229 void WmShellAura::OnDisplayConfigurationChanged() { | 215 void WmShellAura::OnDisplayConfigurationChanged() { |
| 230 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 216 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 231 OnDisplayConfigurationChanged()); | 217 OnDisplayConfigurationChanged()); |
| 232 } | 218 } |
| 233 | 219 |
| 234 } // namespace ash | 220 } // namespace ash |
| OLD | NEW |