OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
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_ | |
7 #pragma once | |
8 | |
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | |
10 | |
11 class BookmarkNode; | |
12 | |
13 // A button cell that handles drawing/highlighting of buttons in the | |
14 // bookmark bar. This cell forwards mouseEntered/mouseExited events | |
15 // to its control view so that pseudo-menu operations | |
16 // (e.g. hover-over to open) can be implemented. | |
17 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell { | |
18 @private | |
19 scoped_nsobject<NSColor> frameColor_; | |
20 } | |
21 | |
22 // Create a button cell which draws without a theme and with a frame | |
23 // color provided by the ThemeService defaults. | |
24 + (id)buttonCellForNode:(const BookmarkNode*)node | |
25 contextMenu:(NSMenu*)contextMenu | |
26 cellText:(NSString*)cellText | |
27 cellImage:(NSImage*)cellImage; | |
28 | |
29 @end | |
30 | |
31 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | |
OLD | NEW |