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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 IBOutlet BookmarkBarView* buttonView_; // Contains 'no items' text fields. 219 IBOutlet BookmarkBarView* buttonView_; // Contains 'no items' text fields.
220 IBOutlet BookmarkButton* offTheSideButton_; // aka the chevron. 220 IBOutlet BookmarkButton* offTheSideButton_; // aka the chevron.
221 IBOutlet NSMenu* buttonContextMenu_; 221 IBOutlet NSMenu* buttonContextMenu_;
222 222
223 NSRect originalNoItemsRect_; // Original, pre-resized field rect. 223 NSRect originalNoItemsRect_; // Original, pre-resized field rect.
224 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect. 224 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect.
225 225
226 // "Other bookmarks" button on the right side. 226 // "Other bookmarks" button on the right side.
227 scoped_nsobject<BookmarkButton> otherBookmarksButton_; 227 scoped_nsobject<BookmarkButton> otherBookmarksButton_;
228 228
229 scoped_nsobject<BookmarkButton> appsPageShortcutButton_;
Alexei Svitkine (slow) 2013/03/07 15:56:59 Nit: Needs a comment.
beaudoin 2013/03/07 21:03:54 Done.
230
229 // We have a special menu for folder buttons. This starts as a copy 231 // We have a special menu for folder buttons. This starts as a copy
230 // of the bar menu. 232 // of the bar menu.
231 scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_; 233 scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_;
232 234
233 // When doing a drag, this is folder button "hovered over" which we 235 // When doing a drag, this is folder button "hovered over" which we
234 // may want to open after a short delay. There are cases where a 236 // may want to open after a short delay. There are cases where a
235 // mouse-enter can open a folder (e.g. if the menus are "active") 237 // mouse-enter can open a folder (e.g. if the menus are "active")
236 // but that doesn't use this variable or need a delay so "hover" is 238 // but that doesn't use this variable or need a delay so "hover" is
237 // the wrong term. 239 // the wrong term.
238 scoped_nsobject<BookmarkButton> hoverButton_; 240 scoped_nsobject<BookmarkButton> hoverButton_;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 413 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
412 - (void)unhighlightBookmark:(const BookmarkNode*)node; 414 - (void)unhighlightBookmark:(const BookmarkNode*)node;
413 415
414 // The following are for testing purposes only and are not used internally. 416 // The following are for testing purposes only and are not used internally.
415 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; 417 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node;
416 - (NSMenu*)buttonContextMenu; 418 - (NSMenu*)buttonContextMenu;
417 - (void)setButtonContextMenu:(id)menu; 419 - (void)setButtonContextMenu:(id)menu;
418 @end 420 @end
419 421
420 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 422 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698