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

Unified Diff: ash/aura/pointer_watcher_adapter.cc

Issue 2420863002: Remove usage of FOR_EACH_OBSERVER macro in ash/aura (Closed)
Patch Set: braces 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 | « no previous file | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/pointer_watcher_adapter.cc
diff --git a/ash/aura/pointer_watcher_adapter.cc b/ash/aura/pointer_watcher_adapter.cc
index ccb559f7f41427877fbd473b91fc4a66d03d1074..c9e54cadc67640b345aa7630bcba5cbd3da9abd6 100644
--- a/ash/aura/pointer_watcher_adapter.cc
+++ b/ash/aura/pointer_watcher_adapter.cc
@@ -95,19 +95,16 @@ void PointerWatcherAdapter::NotifyWatchers(
const ui::LocatedEvent& original_event) {
const gfx::Point screen_location(GetLocationInScreen(original_event));
views::Widget* target_widget = GetTargetWidget(original_event);
- FOR_EACH_OBSERVER(
- views::PointerWatcher, drag_watchers_,
- OnPointerEventObserved(event, screen_location, target_widget));
+ for (auto& observer : drag_watchers_)
+ observer.OnPointerEventObserved(event, screen_location, target_widget);
if (original_event.type() != ui::ET_TOUCH_MOVED &&
original_event.type() != ui::ET_MOUSE_DRAGGED) {
- FOR_EACH_OBSERVER(
- views::PointerWatcher, move_watchers_,
- OnPointerEventObserved(event, screen_location, target_widget));
+ for (auto& observer : move_watchers_)
+ observer.OnPointerEventObserved(event, screen_location, target_widget);
}
if (event.type() != ui::ET_POINTER_MOVED) {
- FOR_EACH_OBSERVER(
- views::PointerWatcher, non_move_watchers_,
- OnPointerEventObserved(event, screen_location, target_widget));
+ for (auto& observer : non_move_watchers_)
+ observer.OnPointerEventObserved(event, screen_location, target_widget);
}
}
« no previous file with comments | « no previous file | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698