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

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

Issue 1987893002: Reland of [Mac][Material Design] Update bookmarks bar to Material Design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: chrome/browser/ui/cocoa/gradient_button_cell.h
diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.h b/chrome/browser/ui/cocoa/gradient_button_cell.h
index 6fc3859243375184d680f78c6c61eb4c1c718d2c..d635d4218c278eb3b0fbdde59c18751b811e5f5d 100644
--- a/chrome/browser/ui/cocoa/gradient_button_cell.h
+++ b/chrome/browser/ui/cocoa/gradient_button_cell.h
@@ -30,6 +30,7 @@
// doesn't darken using the theme's "pressed" gradient. Instead uses the
// normal un-pressed gradient.
kStandardButtonTypeWithLimitedClickFeedback = 3,
+ kMaterialStandardButtonTypeWithLimitedClickFeedback = 4,
};
typedef NSInteger ButtonType;
@@ -106,6 +107,9 @@
// Actually fetches current mouse position and does a hit test.
- (BOOL)isMouseReallyInside;
+// Returns the offset of the start of the text in the cell.
+- (CGFloat)textStartXOffset;
+
// Defines the top offset of text within the cell. Used by drawTitle and can
// be overriden by objects that inherit this class for placement of text.
- (int)verticalTextOffset;
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm ('k') | chrome/browser/ui/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698