OLD | NEW |
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_bar_folder_button_cell.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" |
6 | 6 |
7 @implementation BookmarkBarFolderButtonCell | 7 @implementation BookmarkBarFolderButtonCell |
8 | 8 |
9 + (id)buttonCellForNode:(const BookmarkNode*)node | 9 + (id)buttonCellForNode:(const BookmarkNode*)node |
10 menuController:(BookmarkContextMenuCocoaController*)menuController | 10 text:(NSString*)text |
11 cellText:(NSString*)cellText | 11 image:(NSImage*)image |
12 cellImage:(NSImage*)cellImage { | 12 menuController:(BookmarkContextMenuCocoaController*)menuController { |
13 id buttonCell = | 13 id buttonCell = |
14 [[[BookmarkBarFolderButtonCell alloc] initForNode:node | 14 [[[BookmarkBarFolderButtonCell alloc] initForNode:node |
15 menuController:menuController | 15 text:text |
16 cellText:cellText | 16 image:image |
17 cellImage:cellImage] | 17 menuController:menuController] |
18 autorelease]; | 18 autorelease]; |
19 return buttonCell; | 19 return buttonCell; |
20 } | 20 } |
21 | 21 |
22 - (BOOL)isFolderButtonCell { | 22 - (BOOL)isFolderButtonCell { |
23 return YES; | 23 return YES; |
24 } | 24 } |
25 | 25 |
26 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { | 26 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { |
27 } | 27 } |
28 | 28 |
29 @end | 29 @end |
OLD | NEW |