OLD | NEW |
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_APP_TOOLBAR_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #import "chrome/browser/ui/cocoa/clickhold_button_cell.h" | 12 #import "chrome/browser/ui/cocoa/clickhold_button_cell.h" |
13 #include "chrome/browser/ui/toolbar/app_menu_icon_painter.h" | |
14 | 13 |
15 class AppMenuIconPainterDelegateMac; | |
16 | 14 |
17 // Cell for the app toolbar button. This is used to draw the app menu icon | 15 // Cell for the app toolbar button. This is used to draw the app menu icon |
18 // and paint severity levels. | 16 // and paint severity levels. |
19 @interface AppToolbarButtonCell : ClickHoldButtonCell { | 17 @interface AppToolbarButtonCell : ClickHoldButtonCell { |
20 @private | |
21 std::unique_ptr<AppMenuIconPainter> iconPainter_; | |
22 std::unique_ptr<AppMenuIconPainterDelegateMac> delegate_; | |
23 } | 18 } |
24 | 19 |
25 - (void)setSeverity:(AppMenuIconPainter::Severity)severity | |
26 shouldAnimate:(BOOL)shouldAnimate; | |
27 | |
28 @end | 20 @end |
29 | 21 |
30 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_ | 22 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_ |
OLD | NEW |