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 using bookmarks::BookmarkNode; |
| 8 |
7 @implementation BookmarkBarFolderButtonCell | 9 @implementation BookmarkBarFolderButtonCell |
8 | 10 |
9 + (id)buttonCellForNode:(const BookmarkNode*)node | 11 + (id)buttonCellForNode:(const BookmarkNode*)node |
10 text:(NSString*)text | 12 text:(NSString*)text |
11 image:(NSImage*)image | 13 image:(NSImage*)image |
12 menuController:(BookmarkContextMenuCocoaController*)menuController { | 14 menuController:(BookmarkContextMenuCocoaController*)menuController { |
13 id buttonCell = | 15 id buttonCell = |
14 [[[BookmarkBarFolderButtonCell alloc] initForNode:node | 16 [[[BookmarkBarFolderButtonCell alloc] initForNode:node |
15 text:text | 17 text:text |
16 image:image | 18 image:image |
17 menuController:menuController] | 19 menuController:menuController] |
18 autorelease]; | 20 autorelease]; |
19 return buttonCell; | 21 return buttonCell; |
20 } | 22 } |
21 | 23 |
22 - (BOOL)isFolderButtonCell { | 24 - (BOOL)isFolderButtonCell { |
23 return YES; | 25 return YES; |
24 } | 26 } |
25 | 27 |
26 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { | 28 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { |
27 } | 29 } |
28 | 30 |
29 @end | 31 @end |
OLD | NEW |