diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-19 00:18:58 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-19 00:18:58 +0000 |
commit | 1e401151c092a8569c2250aa4d5d54519f223b55 (patch) | |
tree | df3df593c3b299ae505ade5f2dc217c01d71f00d /ash | |
parent | 3e1dc20c34c610471927ac76f92f76be221af5d5 (diff) | |
download | chromium_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 'ash')
-rw-r--r-- | ash/launcher/launcher_button.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc index c0fafbb..c6758eb 100644 --- a/ash/launcher/launcher_button.cc +++ b/ash/launcher/launcher_button.cc @@ -73,10 +73,13 @@ class LauncherButton::BarView : public views::ImageView, } void ShowAttention(bool show) { - if (show) + if (show) { + // It's less disruptive if we don't start the pulsing at 0. + animation_.Reset(0.375); animation_.StartThrobbing(-1); - else - animation_.Reset(); + } else { + animation_.Reset(0.0); + } } private: |