summaryrefslogtreecommitdiffstats
path: root/ui/base
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-19 00:18:58 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-19 00:18:58 +0000
commit1e401151c092a8569c2250aa4d5d54519f223b55 (patch)
treedf3df593c3b299ae505ade5f2dc217c01d71f00d /ui/base
parent3e1dc20c34c610471927ac76f92f76be221af5d5 (diff)
downloadchromium_src-1e401151c092a8569c2250aa4d5d54519f223b55.zip
chromium_src-1e401151c092a8569c2250aa4d5d54519f223b55.tar.gz
chromium_src-1e401151c092a8569c2250aa4d5d54519f223b55.tar.bz2
Flash window by pulsing their launcher icon state indicator
BUG=119965 TEST=BrowserLauncherItemControllerTest.FlashWindow Review URL: https://chromiumcodereview.appspot.com/10392173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r--ui/base/animation/throb_animation.cc8
-rw-r--r--ui/base/animation/throb_animation.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/ui/base/animation/throb_animation.cc b/ui/base/animation/throb_animation.cc
index 95e9a65..72392a0 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() {
diff --git a/ui/base/animation/throb_animation.h b/ui/base/animation/throb_animation.h
index 46aae2f..08b2840 100644
--- a/ui/base/animation/throb_animation.h
+++ b/ui/base/animation/throb_animation.h
@@ -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.
@@ -31,6 +31,7 @@ class UI_EXPORT ThrobAnimation : public SlideAnimation {
// Overridden to reset to the slide duration.
virtual void Reset() OVERRIDE;
+ virtual void Reset(double value) OVERRIDE;
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;