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

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: No longer touching model or views. 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 a56bd8304aa2704b6efe614824acafab1e47eaeb..20ca5a63089c8fd98b44dac4782765b1e3057d0b 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h
@@ -41,6 +41,11 @@ class BookmarkNode;
cellText:(NSString*)cellText
cellImage:(NSImage*)cellImage;
+// Create a button cell not attached to any node which draws with a theme.
++ (id)buttonCellForContextMenu:(NSMenu*)contextMenu
+ cellText:(NSString*)cellText
+ cellImage:(NSImage*)cellImage;
+
// Initialize a button cell which draws with a theme.
// Designated initializer.
- (id)initForNode:(const BookmarkNode*)node
@@ -48,7 +53,15 @@ class BookmarkNode;
cellText:(NSString*)cellText
cellImage:(NSImage*)cellImage;
-- (BOOL)empty; // returns YES if empty.
+// Initialize a button cell not attached to any node which draws with a theme.
+- (id)initForContextMenu:(NSMenu*)contextMenu
+ cellText:(NSString*)cellText
+ cellImage:(NSImage*)cellImage;
+
+// 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 expecte 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