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_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
7 | 7 |
8 #import "base/mac/cocoa_protocols.h" | |
9 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" |
10 | 9 |
11 class BookmarkNode; | 10 class BookmarkNode; |
12 | 11 |
13 // A button cell that handles drawing/highlighting of buttons in the | 12 // A button cell that handles drawing/highlighting of buttons in the |
14 // bookmark bar. This cell forwards mouseEntered/mouseExited events | 13 // bookmark bar. This cell forwards mouseEntered/mouseExited events |
15 // to its control view so that pseudo-menu operations | 14 // to its control view so that pseudo-menu operations |
16 // (e.g. hover-over to open) can be implemented. | 15 // (e.g. hover-over to open) can be implemented. |
17 @interface BookmarkButtonCell : GradientButtonCell<NSMenuDelegate> { | 16 @interface BookmarkButtonCell : GradientButtonCell<NSMenuDelegate> { |
18 @private | 17 @private |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 image:(NSImage*)image; | 59 image:(NSImage*)image; |
61 | 60 |
62 // Set the color of text in this cell. | 61 // Set the color of text in this cell. |
63 - (void)setTextColor:(NSColor*)color; | 62 - (void)setTextColor:(NSColor*)color; |
64 | 63 |
65 - (BOOL)isFolderButtonCell; | 64 - (BOOL)isFolderButtonCell; |
66 | 65 |
67 @end | 66 @end |
68 | 67 |
69 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 68 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
OLD | NEW |