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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // |-setBookmarkCellText:image:| is used to set the text and image of | 48 // |-setBookmarkCellText:image:| is used to set the text and image of |
49 // a BookmarkButtonCell, and align the image to the left (NSImageLeft) | 49 // a BookmarkButtonCell, and align the image to the left (NSImageLeft) |
50 // if there is text in the title, and centered (NSImageCenter) if | 50 // if there is text in the title, and centered (NSImageCenter) if |
51 // there is not. If |title| is nil, do not reset the title. | 51 // there is not. If |title| is nil, do not reset the title. |
52 - (void)setBookmarkCellText:(NSString*)title | 52 - (void)setBookmarkCellText:(NSString*)title |
53 image:(NSImage*)image; | 53 image:(NSImage*)image; |
54 | 54 |
55 // Set the color of text in this cell. | 55 // Set the color of text in this cell. |
56 - (void)setTextColor:(NSColor*)color; | 56 - (void)setTextColor:(NSColor*)color; |
57 | 57 |
58 - (BOOL)isFolderButtonCell; | |
59 | |
60 @end | 58 @end |
61 | 59 |
62 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 60 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
OLD | NEW |