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

Unified Diff: ui/base/animation/throb_animation.cc

Issue 10392173: Flash window by pulsing their launcher icon state indicator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 7 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/base/animation/throb_animation.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/animation/throb_animation.cc
diff --git a/ui/base/animation/throb_animation.cc b/ui/base/animation/throb_animation.cc
index 95e9a65c9c8ebb138b5b6d8d718919c95da7677b..72392a09161910065a63caeb933395ae86d77011 100644
--- a/ui/base/animation/throb_animation.cc
+++ b/ui/base/animation/throb_animation.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -35,8 +35,12 @@ void ThrobAnimation::StartThrobbing(int cycles_til_stop) {
}
void ThrobAnimation::Reset() {
+ Reset(0);
+}
+
+void ThrobAnimation::Reset(double value) {
ResetForSlide();
- SlideAnimation::Reset();
+ SlideAnimation::Reset(value);
}
void ThrobAnimation::Show() {
« no previous file with comments | « ui/base/animation/throb_animation.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698