OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_BOOKMARK_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ |
6 #define CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ |
7 | 7 |
8 #import "base/cocoa_protocols_mac.h" | 8 #import "base/cocoa_protocols_mac.h" |
9 #import "chrome/browser/cocoa/gradient_button_cell.h" | 9 #import "chrome/browser/cocoa/gradient_button_cell.h" |
10 | 10 |
11 // A button cell that handles drawing/highlighting of buttons in the | 11 // A button cell that handles drawing/highlighting of buttons in the |
12 // bookmark bar. | 12 // bookmark bar. |
13 | 13 |
14 @interface BookmarkButtonCell : GradientButtonCell<NSMenuDelegate> { | 14 @interface BookmarkButtonCell : GradientButtonCell<NSMenuDelegate> { |
15 } | 15 } |
16 // |-setBookmarkCellText:image:| is used to set the text and image | |
17 // of a BookmarkButtonCell, and align the image to the left (NSImageLeft) | |
18 // if there is text in the title, and centered (NSImageCenter) if there is | |
mrossetti
2009/11/05 03:26:14
What does that last part of the comment, "...if th
| |
19 - (void)setBookmarkCellText:(NSString*)title | |
20 image:(NSImage*)image; | |
16 @end | 21 @end |
17 | 22 |
18 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ | 23 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ |
OLD | NEW |