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

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_ 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #import "chrome/browser/ui/cocoa/clickhold_button_cell.h" 11 #import "chrome/browser/ui/cocoa/clickhold_button_cell.h"
12 #include "chrome/browser/ui/toolbar/wrench_icon_painter.h" 12 #include "chrome/browser/ui/toolbar/wrench_icon_painter.h"
13 13
14 class WrenchIconPainterDelegateMac; 14 class WrenchIconPainterDelegateMac;
15 15
16 // Cell for the wrench toolbar button. This is used to draw the wrench icon 16 // Cell for the wrench toolbar button. This is used to draw the wrench icon
17 // and paint severity levels. 17 // and paint severity levels.
18 @interface WrenchToolbarButtonCell : ClickHoldButtonCell { 18 @interface WrenchToolbarButtonCell : ClickHoldButtonCell {
19 @private 19 @private
20 scoped_ptr<WrenchIconPainter> wrenchIconPainter_; 20 scoped_ptr<WrenchIconPainter> wrenchIconPainter_;
21 scoped_ptr<WrenchIconPainterDelegateMac> delegate_; 21 scoped_ptr<WrenchIconPainterDelegateMac> delegate_;
22 } 22 }
23 23
24 - (void)setSeverity:(WrenchIconPainter::Severity)severity; 24 - (void)setSeverity:(WrenchIconPainter::Severity)severity
25 shouldAnimate:(BOOL)shouldAnimate;
25 26
26 @end 27 @end
27 28
28 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_ 29 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_WRENCH_TOOLBAR_BUTTON_CELL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/cocoa/toolbar/wrench_toolbar_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698