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

Unified Diff: ui/wm/core/transient_window_manager.cc

Issue 2416963006: Remove usage of FOR_EACH_OBSERVER macro in ui/wm/. (Closed)
Patch Set: 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 | « ui/wm/core/focus_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/transient_window_manager.cc
diff --git a/ui/wm/core/transient_window_manager.cc b/ui/wm/core/transient_window_manager.cc
index 876a49990bf8369615dffbc05b31fea95200fc6c..6a829ed6a87259a170aa53fdea0a20adf69690ea 100644
--- a/ui/wm/core/transient_window_manager.cc
+++ b/ui/wm/core/transient_window_manager.cc
@@ -72,8 +72,8 @@ void TransientWindowManager::AddTransientChild(Window* child) {
if (child->parent() == window_->parent())
RestackTransientDescendants();
- FOR_EACH_OBSERVER(TransientWindowObserver, observers_,
- OnTransientChildAdded(window_, child));
+ for (auto& observer : observers_)
+ observer.OnTransientChildAdded(window_, child);
}
void TransientWindowManager::RemoveTransientChild(Window* child) {
@@ -91,8 +91,8 @@ void TransientWindowManager::RemoveTransientChild(Window* child) {
if (window_->parent() == child->parent())
RestackTransientDescendants();
- FOR_EACH_OBSERVER(TransientWindowObserver, observers_,
- OnTransientChildRemoved(window_, child));
+ for (auto& observer : observers_)
+ observer.OnTransientChildRemoved(window_, child);
}
bool TransientWindowManager::IsStackingTransient(
« no previous file with comments | « ui/wm/core/focus_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698