Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: ash/wm/aura/wm_globals_aura.cc

Issue 2001623003: Splits ToplevelWindowEventHandler into two (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gyp Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698