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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h

Issue 2794123002: [Mac] Bookmark button cell updates (Closed)
Patch Set: Add comment to test Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
index 184242aec0799dea6944873dfb0a0d3ff9c3bd8b..5a3ff163341ad9b44751178af9cf78a77704aadc 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
@@ -44,6 +44,13 @@ class BookmarkNode;
@property(nonatomic, readwrite, assign) int startingChildIndex;
@property(nonatomic, readwrite, assign) BOOL drawFolderArrow;
+// Returns the width of a cell for the given node and image for
+// display on the bookmark bar (meaning no arrow for folder
+// nodes). Used for laying out bookmark bar without creating
+// live cells.
++ (CGFloat)cellWidthForNode:(const bookmarks::BookmarkNode*)node
+ image:(NSImage*)image;
+
// Create a button cell which draws with a theme.
+ (id)buttonCellForNode:(const bookmarks::BookmarkNode*)node
text:(NSString*)text
@@ -87,6 +94,8 @@ class BookmarkNode;
- (void)setTextColor:(NSColor*)color;
- (BOOL)isFolderButtonCell;
+- (void)setBookmarkNode:(const bookmarks::BookmarkNode*)node
+ image:(NSImage*)image;
@end
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698