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

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: 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_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 24438e26f5e8c5ffa21de50672c40f97efe7dc06..5fb62a9ab483666831010aa8c647ebff9401f713 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
@@ -223,6 +223,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_;
+
// When doing a drag, this is folder button "hovered over" which we
// may want to open after a short delay. There are cases where a
// mouse-enter can open a folder (e.g. if the menus are "active")
@@ -298,6 +301,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;
@@ -384,6 +390,8 @@ willAnimateFromState:(BookmarkBar::State)oldState
- (void)openURL:(GURL)url disposition:(WindowOpenDisposition)disposition;
- (void)clearBookmarkBar;
- (BookmarkButtonCell*)cellForBookmarkNode:(const BookmarkNode*)node;
+- (BookmarkButtonCell*)cellForCustomButtonWithText:(NSString*)text
+ image:(NSImage*)image;
- (NSRect)frameForBookmarkButtonFromCell:(NSCell*)cell xOffset:(int*)xOffset;
- (void)checkForBookmarkButtonGrowth:(NSButton*)button;
- (void)frameDidChange;

Powered by Google App Engine
This is Rietveld 408576698