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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_view.mm

Issue 1883033002: [Mac] Update tab audio icon to Material Design and tweak close box color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: chrome/browser/ui/cocoa/tabs/tab_view.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_view.mm b/chrome/browser/ui/cocoa/tabs/tab_view.mm
index 3e884a9cc7d9dd8d851c2696eb03562651702bcf..605432eb76ca6b498aeefe8c6f12ed955b2280da 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_view.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_view.mm
@@ -53,6 +53,11 @@ const CGFloat kRapidCloseDist = 2.5;
+ (void)drawTabRightEdgeImage;
@end
+@interface TabController(Private)
+// The TabView's close button.
+- (HoverCloseButton*)closeButton;
+@end
+
namespace {
NSImage* imageForResourceID(int resource_id) {
@@ -590,6 +595,10 @@ CGFloat LineWidthFromContext(CGContextRef context) {
[self setNeedsDisplayInRect:[titleView_ frame]];
}
+- (SkColor)closeButtonColor {
+ return [[controller_ closeButton] iconColor];
+}
+
- (void)setState:(NSCellStateValue)state {
if (state_ == state)
return;

Powered by Google App Engine
This is Rietveld 408576698