| 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ |
| 7 | 7 |
| 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" |
| 9 | 9 |
| 10 // A button cell that handles drawing/highlighting of buttons in the | 10 // A button cell that handles drawing/highlighting of buttons in the |
| 11 // bookmark bar. This cell forwards mouseEntered/mouseExited events | 11 // bookmark bar. This cell forwards mouseEntered/mouseExited events |
| 12 // to its control view so that pseudo-menu operations | 12 // to its control view so that pseudo-menu operations |
| 13 // (e.g. hover-over to open) can be implemented. | 13 // (e.g. hover-over to open) can be implemented. |
| 14 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell | 14 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell |
| 15 | 15 |
| 16 // Create a button cell which draws without a theme and with a frame | 16 // Create a button cell which draws without a theme and with a frame |
| 17 // color provided by the ThemeService defaults. | 17 // color provided by the ThemeService defaults. |
| 18 + (id)buttonCellForNode:(const BookmarkNode*)node | 18 + (id)buttonCellForNode:(const BookmarkNode*)node |
| 19 menuController:(BookmarkContextMenuCocoaController*)menuController | 19 text:(NSString*)text |
| 20 cellText:(NSString*)cellText | 20 image:(NSImage*)image |
| 21 cellImage:(NSImage*)cellImage; | 21 menuController:(BookmarkContextMenuCocoaController*)menuController; |
| 22 | 22 |
| 23 @end | 23 @end |
| 24 | 24 |
| 25 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 25 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ |
| OLD | NEW |