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

Unified Diff: chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm

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/cocoa/toolbar/wrench_toolbar_button_cell.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm b/chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm
index 7744bb49a0296acece4b5f5ced53c0f9f3eecb58..8425bff094b5a31986150c050c51aebfa61fcc5b 100644
--- a/chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm
+++ b/chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm
@@ -61,8 +61,9 @@ class WrenchIconPainterDelegateMac : public WrenchIconPainter::Delegate {
[self drawFocusRingWithFrame:cellFrame inView:controlView];
}
-- (void)setSeverity:(WrenchIconPainter::Severity)severity {
- wrenchIconPainter_->SetSeverity(severity);
+- (void)setSeverity:(WrenchIconPainter::Severity)severity
+ shouldAnimate:(BOOL)shouldAnimate {
+ wrenchIconPainter_->SetSeverity(severity, shouldAnimate);
}
- (void)commonInit {

Powered by Google App Engine
This is Rietveld 408576698