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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm

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 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h"
6 6
7 #include "base/mac/bundle_locations.h" 7 #include "base/mac/bundle_locations.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 355 }
356 356
357 #pragma mark Private Methods 357 #pragma mark Private Methods
358 358
359 - (BookmarkButtonCell*)cellForBookmarkNode:(const BookmarkNode*)child { 359 - (BookmarkButtonCell*)cellForBookmarkNode:(const BookmarkNode*)child {
360 NSImage* image = child ? [barController_ faviconForNode:child] : nil; 360 NSImage* image = child ? [barController_ faviconForNode:child] : nil;
361 BookmarkContextMenuCocoaController* menuController = 361 BookmarkContextMenuCocoaController* menuController =
362 [barController_ menuController]; 362 [barController_ menuController];
363 BookmarkBarFolderButtonCell* cell = 363 BookmarkBarFolderButtonCell* cell =
364 [BookmarkBarFolderButtonCell buttonCellForNode:child 364 [BookmarkBarFolderButtonCell buttonCellForNode:child
365 menuController:menuController 365 text:nil
366 cellText:nil 366 image:image
367 cellImage:image]; 367 menuController:menuController];
368 [cell setTag:kStandardButtonTypeWithLimitedClickFeedback]; 368 [cell setTag:kStandardButtonTypeWithLimitedClickFeedback];
369 return cell; 369 return cell;
370 } 370 }
371 371
372 // Redirect to our logic shared with BookmarkBarController. 372 // Redirect to our logic shared with BookmarkBarController.
373 - (IBAction)openBookmarkFolderFromButton:(id)sender { 373 - (IBAction)openBookmarkFolderFromButton:(id)sender {
374 [folderTarget_ openBookmarkFolderFromButton:sender]; 374 [folderTarget_ openBookmarkFolderFromButton:sender];
375 } 375 }
376 376
377 // Create a bookmark button for the given node using frame. 377 // Create a bookmark button for the given node using frame.
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 1965
1966 - (void)setIgnoreAnimations:(BOOL)ignore { 1966 - (void)setIgnoreAnimations:(BOOL)ignore {
1967 ignoreAnimations_ = ignore; 1967 ignoreAnimations_ = ignore;
1968 } 1968 }
1969 1969
1970 - (BookmarkButton*)buttonThatMouseIsIn { 1970 - (BookmarkButton*)buttonThatMouseIsIn {
1971 return buttonThatMouseIsIn_; 1971 return buttonThatMouseIsIn_;
1972 } 1972 }
1973 1973
1974 @end // BookmarkBarFolderController 1974 @end // BookmarkBarFolderController
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698