Chromium Code Reviews| 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 718f57b9a5e767affe16137cb088bebf9a7ac483..789791b86dc3a5aacedb68818fb702b5831fdfb6 100644 |
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h |
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h |
| @@ -43,17 +43,32 @@ class BookmarkNode; |
| // Create a button cell which draws with a theme. |
| + (id)buttonCellForNode:(const BookmarkNode*)node |
| menuController:(BookmarkContextMenuCocoaController*)menuController |
| - cellText:(NSString*)cellText |
| - cellImage:(NSImage*)cellImage; |
| + text:(NSString*)text |
| + image:(NSImage*)image; |
| + |
| +// Create a button cell not attached to any node which draws with a theme. |
| ++ (id)buttonCellWithMenuController: |
| + (BookmarkContextMenuCocoaController*)menuController |
| + text:(NSString*)text |
| + image:(NSImage*)image; |
| // Initialize a button cell which draws with a theme. |
| // Designated initializer. |
| - (id)initForNode:(const BookmarkNode*)node |
| menuController:(BookmarkContextMenuCocoaController*)menuController |
| - cellText:(NSString*)cellText |
| - cellImage:(NSImage*)cellImage; |
| - |
| -- (BOOL)empty; // returns YES if empty. |
| + text:(NSString*)text |
| + image:(NSImage*)image; |
| + |
| +// Initialize a button cell not attached to any node which draws with a theme. |
| +- (id)initWithMenuController: |
|
Alexei Svitkine (slow)
2013/03/11 14:31:04
As discussed on a previous patchset, we wanted |te
beaudoin
2013/03/11 21:02:14
Done.
|
| + (BookmarkContextMenuCocoaController*)menuController |
| + text:(NSString*)text |
| + image:(NSImage*)image; |
| + |
| +// A button cell is considered empty if it is expected to be attached to a node |
| +// and this node is NULL. If the button was created with |
| +// buttonCellForContextMenu then no node is expected and empty is always NO. |
| +- (BOOL)empty; |
| - (void)setEmpty:(BOOL)empty; |
| // |-setBookmarkCellText:image:| is used to set the text and image of |