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

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

Issue 12550006: Mac: Add a shortcut to open the Apps page from the bookmark bar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor typo. Created 7 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 718f57b9a5e767affe16137cb088bebf9a7ac483..32b13f4b55a110a434fce874a28fa3b2bbf6d853 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
@@ -42,18 +42,31 @@ 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
+ menuController:(BookmarkContextMenuCocoaController*)menuController;
+
+// Create a button cell not attached to any node which draws with a theme.
++ (id)buttonCellWithText:(NSString*)text
+ image:(NSImage*)image
+ menuController:(BookmarkContextMenuCocoaController*)menuController;
// 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
+ menuController:(BookmarkContextMenuCocoaController*)menuController;
+
+// Initialize a button cell not attached to any node which draws with a theme.
+- (id)initWithText:(NSString*)text
+ image:(NSImage*)image
+ menuController:(BookmarkContextMenuCocoaController*)menuController;
+
+// 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

Powered by Google App Engine
This is Rietveld 408576698