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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.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_bar_controller.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
index 01e16ccfa4abade2768c6a894a408223ee78e8f3..dc5e1ac71e3e88d623a5fa7c9fad719380668a09 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
@@ -226,6 +226,9 @@ willAnimateFromState:(BookmarkBar::State)oldState
// "Other bookmarks" button on the right side.
scoped_nsobject<BookmarkButton> otherBookmarksButton_;
+ // "Apps" button to the right of "Other bookmarks".
+ scoped_nsobject<BookmarkButton> appsPageShortcutButton_;
+
// We have a special menu for folder buttons. This starts as a copy
// of the bar menu.
scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_;
@@ -296,6 +299,9 @@ willAnimateFromState:(BookmarkBar::State)oldState
// Update the visible state of the bookmark bar.
- (void)updateVisibility;
+// Update the visible state of the bookmark bar.
+- (void)updateAppsPageShortcutButtonVisibility;
+
// Hides or shows the bookmark bar depending on the current state.
- (void)updateHiddenState;
@@ -399,6 +405,8 @@ willAnimateFromState:(BookmarkBar::State)oldState
- (void)openURL:(GURL)url disposition:(WindowOpenDisposition)disposition;
- (void)clearBookmarkBar;
- (BookmarkButtonCell*)cellForBookmarkNode:(const BookmarkNode*)node;
+- (BookmarkButtonCell*)cellForCustomButton:(NSString*)text
+ withImage:(NSImage*)image;
- (NSRect)frameForBookmarkButtonFromCell:(NSCell*)cell xOffset:(int*)xOffset;
- (void)checkForBookmarkButtonGrowth:(NSButton*)button;
- (void)frameDidChange;

Powered by Google App Engine
This is Rietveld 408576698