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

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

Issue 2511973002: Reverse bookmark buttons and menus in RTL (Closed)
Patch Set: Use line width instead of hardcoding cell inset Created 4 years 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 00168f1743f5cd660569bf917a5c76c612fe56db..5e4382b03731595e4ea7d3553466a03977035829 100644
--- a/chrome/browser/ui/cocoa/gradient_button_cell.h
+++ b/chrome/browser/ui/cocoa/gradient_button_cell.h
@@ -48,7 +48,6 @@ typedef enum {
// Continuously illuminated, used to highlight buttons.
kPulsingStuckOn,
} PulseState;
-
};
@@ -90,6 +89,10 @@ typedef enum {
- (NSBezierPath*)clipPathForFrame:(NSRect)cellFrame
inView:(NSView*)controlView;
+// Returns the amount by which the control frame is inset on all sides for
+// drawing.
+- (CGFloat)insetInView:(NSView*)controlView;
+
// Turn on or off pulse sticking. When turning off sticking, leave our pulse
// state in the correct ending position for our isMouseInside_ property. Public
// since it's called from the bookmark bubble.
@@ -106,9 +109,6 @@ typedef enum {
// 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_unittest.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