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

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

Issue 1680773006: Implement Material Design for Mac toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_master
Patch Set: Change button hover and pressed styles. Created 4 years, 9 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/themed_window.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
new file mode 100644
index 0000000000000000000000000000000000000000..a15bc2d5b9d82d02611e4dc81a78c3eb6902e3af
--- /dev/null
+++ b/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_
+#define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_ptr.h"
+#import "chrome/browser/ui/cocoa/menu_button.h"
+#include "chrome/browser/ui/toolbar/app_menu_icon_painter.h"
+
+class AppMenuButtonIconPainterDelegateMac;
+
+// Button for the app toolbar button.
+@interface AppToolbarButton : MenuButton {
+ @private
+ scoped_ptr<AppMenuButtonIconPainterDelegateMac> delegate_;
+ AppMenuIconPainter::Severity severity_;
+}
+
+- (void)setSeverity:(AppMenuIconPainter::Severity)severity
+ shouldAnimate:(BOOL)shouldAnimate;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_H_
« no previous file with comments | « chrome/browser/ui/cocoa/themed_window.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