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

Unified Diff: ui/views/animation/bounds_animator.cc

Issue 2417463009: Remove usage of FOR_EACH_OBSERVER macro in ui/views/. (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 | « no previous file | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/bounds_animator.cc
diff --git a/ui/views/animation/bounds_animator.cc b/ui/views/animation/bounds_animator.cc
index 3f0e65fd0f0d3adcebc6bacf5abd06c3612b2342..8c7402c6272eec90037783e1a5fb6436c868144b 100644
--- a/ui/views/animation/bounds_animator.cc
+++ b/ui/views/animation/bounds_animator.cc
@@ -264,16 +264,14 @@ void BoundsAnimator::AnimationContainerProgressed(
repaint_bounds_.SetRect(0, 0, 0, 0);
}
- FOR_EACH_OBSERVER(BoundsAnimatorObserver,
- observers_,
- OnBoundsAnimatorProgressed(this));
+ for (auto& observer : observers_)
+ observer.OnBoundsAnimatorProgressed(this);
if (!IsAnimating()) {
// Notify here rather than from AnimationXXX to avoid deleting the animation
// while the animation is calling us.
- FOR_EACH_OBSERVER(BoundsAnimatorObserver,
- observers_,
- OnBoundsAnimatorDone(this));
+ for (auto& observer : observers_)
+ observer.OnBoundsAnimatorDone(this);
}
}
« no previous file with comments | « no previous file | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698