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

Unified Diff: ui/views/focus/widget_focus_manager.cc

Issue 2418983002: ui/views: convert usage of FOR_EACH_OBSERVER macro (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/views/focus/focus_manager.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/widget_focus_manager.cc
diff --git a/ui/views/focus/widget_focus_manager.cc b/ui/views/focus/widget_focus_manager.cc
index 65365a4385f17addcf253a4176d070f4c02faad0..099b286e94cdfa223b6ce3777cadf23c127e3feb 100644
--- a/ui/views/focus/widget_focus_manager.cc
+++ b/ui/views/focus/widget_focus_manager.cc
@@ -27,8 +27,8 @@ void WidgetFocusManager::RemoveFocusChangeListener(
void WidgetFocusManager::OnNativeFocusChanged(gfx::NativeView focused_now) {
if (enabled_) {
- FOR_EACH_OBSERVER(WidgetFocusChangeListener, focus_change_listeners_,
- OnNativeFocusChanged(focused_now));
+ for (WidgetFocusChangeListener& observer : focus_change_listeners_)
+ observer.OnNativeFocusChanged(focused_now);
}
}
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698