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

Unified Diff: ash/launcher/launcher_button.cc

Issue 10392173: Flash window by pulsing their launcher icon state indicator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some cleanup 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
Index: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index c0fafbb84b6203c19cadba42b8cec2157090ab89..c6758eb00f0d090b8f0e298e8821cb74527cabcd 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:

Powered by Google App Engine
This is Rietveld 408576698