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

Unified Diff: chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h

Issue 2859903003: [Mac] App Menu Animated Icon (Closed)
Patch Set: Switch to CanvasSkiaPaint Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/cocoa/menu_button.mm ('k') | chrome/browser/ui/cocoa/toolbar/app_toolbar_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h
diff --git a/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h b/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h
index bc4ef6894e4772e6c23def8777c6944be04aa079..fa3ee82b43cd8823abd44a3b1fd1f47e8ad81803 100644
--- a/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h
+++ b/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h
@@ -12,17 +12,27 @@
#import "chrome/browser/ui/cocoa/menu_button.h"
#include "chrome/browser/ui/toolbar/app_menu_icon_controller.h"
+class AppMenuAnimation;
+class AppMenuBridgeCocoa;
+
// Button for the app toolbar button.
@interface AppToolbarButton : MenuButton {
@private
AppMenuIconController::Severity severity_;
AppMenuIconController::IconType type_;
+
+ // Used for animating and drawing the app menu icon.
+ std::unique_ptr<AppMenuBridgeCocoa> appMenuBridge_;
+ std::unique_ptr<AppMenuAnimation> appMenuAnimation_;
}
- (void)setSeverity:(AppMenuIconController::Severity)severity
iconType:(AppMenuIconController::IconType)iconType
shouldAnimate:(BOOL)shouldAnimate;
+// Called when a new tab had been inserted into the foreground.
+- (void)onTabInsertedInForeground;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_
« no previous file with comments | « chrome/browser/ui/cocoa/menu_button.mm ('k') | chrome/browser/ui/cocoa/toolbar/app_toolbar_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698