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

Unified Diff: chrome/browser/ui/toolbar/wrench_icon_painter.h

Issue 14245003: Wrench Icon: Only animate low severity status once (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/ui/toolbar/wrench_icon_painter.h
diff --git a/chrome/browser/ui/toolbar/wrench_icon_painter.h b/chrome/browser/ui/toolbar/wrench_icon_painter.h
index 8b7e1dd67f9c64a1e5b3a2927698e520da475977..36d106a30d471397a37d88f9878229b62e3111ed 100644
--- a/chrome/browser/ui/toolbar/wrench_icon_painter.h
+++ b/chrome/browser/ui/toolbar/wrench_icon_painter.h
@@ -50,6 +50,10 @@ class WrenchIconPainter : ui::AnimationDelegate {
static Severity SeverityFromUpgradeLevel(
UpgradeDetector::UpgradeNotificationAnnoyanceLevel level);
+ // Checks if the wrench icon should be animated for the given upgrade level.
+ static bool ShouldAnimateUpgradeLevel(
+ UpgradeDetector::UpgradeNotificationAnnoyanceLevel level);
+
// Map a global error level to a severity level.
static Severity SeverityFromGlobalErrorSeverity(
GlobalError::Severity severity);
@@ -59,7 +63,7 @@ class WrenchIconPainter : ui::AnimationDelegate {
// If |severity| is not |SEVERITY_NONE| then the wrench icon is colored to
// match the severity level.
- void SetSeverity(Severity severity);
+ void SetSeverity(Severity severity, bool animate);
// A badge drawn on the top left.
void set_badge(const gfx::ImageSkia& badge) { badge_ = badge; }
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm ('k') | chrome/browser/ui/toolbar/wrench_icon_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698