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

Unified Diff: ash/display/window_tree_host_manager.cc

Issue 2421853003: Remove usage of FOR_EACH_OBSERVER macro in ash/ (Closed)
Patch Set: shell_observers Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager.cc
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index b7e99ee461fb75f5b2c4367bbad10e478b3e3b7f..a158d60993af9f481ddef7ddbbc9b3244cf1ea3f 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -253,7 +253,8 @@ void WindowTreeHostManager::Start() {
}
void WindowTreeHostManager::Shutdown() {
- FOR_EACH_OBSERVER(Observer, observers_, OnWindowTreeHostManagerShutdown());
+ for (auto& observer : observers_)
+ observer.OnWindowTreeHostManagerShutdown();
// Unset the display manager's delegate here because
// DisplayManager outlives WindowTreeHostManager.
@@ -309,7 +310,8 @@ void WindowTreeHostManager::InitHosts() {
}
}
- FOR_EACH_OBSERVER(Observer, observers_, OnDisplaysInitialized());
+ for (auto& observer : observers_)
+ observer.OnDisplaysInitialized();
}
void WindowTreeHostManager::AddObserver(Observer* observer) {
@@ -747,7 +749,8 @@ void WindowTreeHostManager::CloseMirroringDisplayIfNotNecessary() {
}
void WindowTreeHostManager::PreDisplayConfigurationChange(bool clear_focus) {
- FOR_EACH_OBSERVER(Observer, observers_, OnDisplayConfigurationChanging());
+ for (auto& observer : observers_)
+ observer.OnDisplayConfigurationChanging();
focus_activation_store_->Store(clear_focus);
display::Screen* screen = display::Screen::GetScreen();
gfx::Point point_in_screen = screen->GetCursorScreenPoint();
@@ -792,7 +795,8 @@ void WindowTreeHostManager::PostDisplayConfigurationChange() {
->SetOutputIsSecure(output_is_secure);
}
- FOR_EACH_OBSERVER(Observer, observers_, OnDisplayConfigurationChanged());
+ for (auto& observer : observers_)
+ observer.OnDisplayConfigurationChanged();
UpdateMouseLocationAfterDisplayChange();
}
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698