| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/cocoa/gradient_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" |
| 9 | 9 |
| 10 @class BookmarkContextMenuCocoaController; | 10 @class BookmarkContextMenuCocoaController; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 BOOL empty_; // is this an "empty" button placeholder button cell? | 23 BOOL empty_; // is this an "empty" button placeholder button cell? |
| 24 | 24 |
| 25 // Starting index of bookmarkFolder children that we care to use. | 25 // Starting index of bookmarkFolder children that we care to use. |
| 26 int startingChildIndex_; | 26 int startingChildIndex_; |
| 27 | 27 |
| 28 // Should we draw the folder arrow as needed? Not used for the bar | 28 // Should we draw the folder arrow as needed? Not used for the bar |
| 29 // itself but used on the folder windows. | 29 // itself but used on the folder windows. |
| 30 BOOL drawFolderArrow_; | 30 BOOL drawFolderArrow_; |
| 31 | 31 |
| 32 // Arrow for folders | 32 // Arrow for folders |
| 33 scoped_nsobject<NSImage> arrowImage_; | 33 base::scoped_nsobject<NSImage> arrowImage_; |
| 34 | 34 |
| 35 // Text color for title. | 35 // Text color for title. |
| 36 scoped_nsobject<NSColor> textColor_; | 36 base::scoped_nsobject<NSColor> textColor_; |
| 37 } | 37 } |
| 38 | 38 |
| 39 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode; | 39 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode; |
| 40 @property(nonatomic, readwrite, assign) int startingChildIndex; | 40 @property(nonatomic, readwrite, assign) int startingChildIndex; |
| 41 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow; | 41 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow; |
| 42 | 42 |
| 43 // Create a button cell which draws with a theme. | 43 // Create a button cell which draws with a theme. |
| 44 + (id)buttonCellForNode:(const BookmarkNode*)node | 44 + (id)buttonCellForNode:(const BookmarkNode*)node |
| 45 text:(NSString*)text | 45 text:(NSString*)text |
| 46 image:(NSImage*)image | 46 image:(NSImage*)image |
| (...skipping 30 matching lines...) Expand all Loading... |
| 77 image:(NSImage*)image; | 77 image:(NSImage*)image; |
| 78 | 78 |
| 79 // Set the color of text in this cell. | 79 // Set the color of text in this cell. |
| 80 - (void)setTextColor:(NSColor*)color; | 80 - (void)setTextColor:(NSColor*)color; |
| 81 | 81 |
| 82 - (BOOL)isFolderButtonCell; | 82 - (BOOL)isFolderButtonCell; |
| 83 | 83 |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
| OLD | NEW |