OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_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/menu_button.h" | 12 #import "chrome/browser/ui/cocoa/menu_button.h" |
13 #include "chrome/browser/ui/toolbar/app_menu_icon_controller.h" | 13 #include "chrome/browser/ui/toolbar/app_menu_icon_controller.h" |
14 #include "chrome/browser/ui/toolbar/app_menu_icon_painter.h" | |
15 | |
16 class AppMenuButtonIconPainterDelegateMac; | |
17 | 14 |
18 // Button for the app toolbar button. | 15 // Button for the app toolbar button. |
19 @interface AppToolbarButton : MenuButton { | 16 @interface AppToolbarButton : MenuButton { |
20 @private | 17 @private |
21 std::unique_ptr<AppMenuButtonIconPainterDelegateMac> delegate_; | 18 AppMenuIconController::Severity severity_; |
22 AppMenuIconPainter::Severity severity_; | |
23 AppMenuIconController::IconType type_; | 19 AppMenuIconController::IconType type_; |
24 } | 20 } |
25 | 21 |
26 - (void)setSeverity:(AppMenuIconPainter::Severity)severity | 22 - (void)setSeverity:(AppMenuIconController::Severity)severity |
27 iconType:(AppMenuIconController::IconType)iconType | 23 iconType:(AppMenuIconController::IconType)iconType |
28 shouldAnimate:(BOOL)shouldAnimate; | 24 shouldAnimate:(BOOL)shouldAnimate; |
29 | 25 |
30 @end | 26 @end |
31 | 27 |
32 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_ | 28 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_ |
OLD | NEW |