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

Side by Side 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 unified diff | Download patch
OLDNEW
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 14
15 class AppMenuAnimation;
16 class AppMenuBridgeCocoa;
17
15 // Button for the app toolbar button. 18 // Button for the app toolbar button.
16 @interface AppToolbarButton : MenuButton { 19 @interface AppToolbarButton : MenuButton {
17 @private 20 @private
18 AppMenuIconController::Severity severity_; 21 AppMenuIconController::Severity severity_;
19 AppMenuIconController::IconType type_; 22 AppMenuIconController::IconType type_;
23
24 // Used for animating and drawing the app menu icon.
25 std::unique_ptr<AppMenuBridgeCocoa> appMenuBridge_;
26 std::unique_ptr<AppMenuAnimation> appMenuAnimation_;
20 } 27 }
21 28
22 - (void)setSeverity:(AppMenuIconController::Severity)severity 29 - (void)setSeverity:(AppMenuIconController::Severity)severity
23 iconType:(AppMenuIconController::IconType)iconType 30 iconType:(AppMenuIconController::IconType)iconType
24 shouldAnimate:(BOOL)shouldAnimate; 31 shouldAnimate:(BOOL)shouldAnimate;
25 32
33 // Called when a new tab had been inserted into the foreground.
34 - (void)onTabInsertedInForeground;
35
26 @end 36 @end
27 37
28 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_ 38 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_
OLDNEW
« 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