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

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

Issue 7528007: [Mac] Delete more bookmark bar folder code. This removes things that were missed last time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_button_cell.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #import "chrome/browser/bookmarks/bookmark_model.h" 9 #import "chrome/browser/bookmarks/bookmark_model.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 - (id)initTextCell:(NSString*)string { 64 - (id)initTextCell:(NSString*)string {
65 return [self initForNode:nil contextMenu:nil cellText:string cellImage:nil]; 65 return [self initForNode:nil contextMenu:nil cellText:string cellImage:nil];
66 } 66 }
67 67
68 // Used by the off-the-side menu, the only case where a 68 // Used by the off-the-side menu, the only case where a
69 // BookmarkButtonCell is loaded from a nib. 69 // BookmarkButtonCell is loaded from a nib.
70 - (void)awakeFromNib { 70 - (void)awakeFromNib {
71 [self configureBookmarkButtonCell]; 71 [self configureBookmarkButtonCell];
72 } 72 }
73 73
74 - (BOOL)isFolderButtonCell {
75 return NO;
76 }
77
78 // Perform all normal init routines specific to the BookmarkButtonCell. 74 // Perform all normal init routines specific to the BookmarkButtonCell.
79 - (void)configureBookmarkButtonCell { 75 - (void)configureBookmarkButtonCell {
80 [self setButtonType:NSMomentaryPushInButton]; 76 [self setButtonType:NSMomentaryPushInButton];
81 [self setBezelStyle:NSShadowlessSquareBezelStyle]; 77 [self setBezelStyle:NSShadowlessSquareBezelStyle];
82 [self setShowsBorderOnlyWhileMouseInside:YES]; 78 [self setShowsBorderOnlyWhileMouseInside:YES];
83 [self setControlSize:NSSmallControlSize]; 79 [self setControlSize:NSSmallControlSize];
84 [self setAlignment:NSLeftTextAlignment]; 80 [self setAlignment:NSLeftTextAlignment];
85 [self setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; 81 [self setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
86 [self setWraps:NO]; 82 [self setWraps:NO];
87 // NSLineBreakByTruncatingMiddle seems more common on OSX but let's 83 // NSLineBreakByTruncatingMiddle seems more common on OSX but let's
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 [[self controlView] mouseEntered:event]; 196 [[self controlView] mouseEntered:event];
201 } 197 }
202 198
203 // See comment above mouseEntered:, above. 199 // See comment above mouseEntered:, above.
204 - (void)mouseExited:(NSEvent*)event { 200 - (void)mouseExited:(NSEvent*)event {
205 [[self controlView] mouseExited:event]; 201 [[self controlView] mouseExited:event];
206 [super mouseExited:event]; 202 [super mouseExited:event];
207 } 203 }
208 204
209 @end 205 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698