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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import "base/mac/cocoa_protocols.h" | 9 #import "base/mac/cocoa_protocols.h" |
10 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 10 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Starting index of bookmarkFolder children that we care to use. | 22 // Starting index of bookmarkFolder children that we care to use. |
23 int startingChildIndex_; | 23 int startingChildIndex_; |
24 | 24 |
25 // Should we draw the folder arrow as needed? Not used for the bar | 25 // Should we draw the folder arrow as needed? Not used for the bar |
26 // itself but used on the folder windows. | 26 // itself but used on the folder windows. |
27 BOOL drawFolderArrow_; | 27 BOOL drawFolderArrow_; |
28 | 28 |
29 // Arrow for folders | 29 // Arrow for folders |
30 scoped_nsobject<NSImage> arrowImage_; | 30 scoped_nsobject<NSImage> arrowImage_; |
| 31 |
| 32 // Text color for title. |
| 33 scoped_nsobject<NSColor> textColor_; |
31 } | 34 } |
32 | 35 |
33 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode; | 36 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode; |
34 @property(nonatomic, readwrite, assign) int startingChildIndex; | 37 @property(nonatomic, readwrite, assign) int startingChildIndex; |
35 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow; | 38 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow; |
36 | 39 |
37 // Create a button cell which draws with a theme. | 40 // Create a button cell which draws with a theme. |
38 + (id)buttonCellForNode:(const BookmarkNode*)node | 41 + (id)buttonCellForNode:(const BookmarkNode*)node |
39 contextMenu:(NSMenu*)contextMenu | 42 contextMenu:(NSMenu*)contextMenu |
40 cellText:(NSString*)cellText | 43 cellText:(NSString*)cellText |
(...skipping 17 matching lines...) Expand all Loading... |
58 image:(NSImage*)image; | 61 image:(NSImage*)image; |
59 | 62 |
60 // Set the color of text in this cell. | 63 // Set the color of text in this cell. |
61 - (void)setTextColor:(NSColor*)color; | 64 - (void)setTextColor:(NSColor*)color; |
62 | 65 |
63 - (BOOL)isFolderButtonCell; | 66 - (BOOL)isFolderButtonCell; |
64 | 67 |
65 @end | 68 @end |
66 | 69 |
67 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 70 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
OLD | NEW |