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

Unified Diff: chrome/browser/ui/cocoa/new_tab_button.h

Issue 904503003: Mac: Make more views adopts ThemedWindowDrawing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FramedBrowserWindow
Patch Set: Created 5 years, 10 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 | « no previous file | chrome/browser/ui/cocoa/new_tab_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/new_tab_button.h
diff --git a/chrome/browser/ui/cocoa/new_tab_button.h b/chrome/browser/ui/cocoa/new_tab_button.h
index 97b8482274516d98ef3fd1bb386602547c73512d..8b2ddcf6d24c7dd51a0aa7f7c2b0089ab031466d 100644
--- a/chrome/browser/ui/cocoa/new_tab_button.h
+++ b/chrome/browser/ui/cocoa/new_tab_button.h
@@ -7,12 +7,14 @@
#import <Cocoa/Cocoa.h>
+#import "chrome/browser/ui/cocoa/themed_window.h"
+
// Overrides hit-test behavior to only accept clicks inside the image of the
// button, not just inside the bounding box. This could be abstracted to general
// use, but no other buttons are so irregularly shaped with respect to their
// bounding box.
-@interface NewTabButton : NSButton
+@interface NewTabButton : NSButton<ThemedWindowDrawing>
// Returns YES if the given point is over the button. |point| is in the
// superview's coordinate system.
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/new_tab_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698