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

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

Issue 2751573002: [Mac] Refactor bookmark bar controller (Closed)
Patch Set: Restore unused button pool Created 3 years, 9 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/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

Powered by Google App Engine
This is Rietveld 408576698