summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_button_cell.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 00:48:22 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 00:48:22 +0000
commit76361d0b2bf453fd6a47f16fb7c765e0ece103b4 (patch)
tree3fbe28f9c7c3286cc8c8b5839fdaa7e011064f20 /chrome/browser/cocoa/bookmark_button_cell.h
parentfb3aa11f5f8e53f482410466cd8d8823acd65bb5 (diff)
downloadchromium_src-76361d0b2bf453fd6a47f16fb7c765e0ece103b4.zip
chromium_src-76361d0b2bf453fd6a47f16fb7c765e0ece103b4.tar.gz
chromium_src-76361d0b2bf453fd6a47f16fb7c765e0ece103b4.tar.bz2
Enable the OK button when editing a bookmark even when there is no text, and keep alignment correct in both cases. Also strip out newlines from bookmark titles.
[Patch by feldstein.] BUG=26353 TEST=Add and remove titles from bookmarks in the bookmark bar and verify that they look correct, and icons are centered when there is no text. Review URL: http://codereview.chromium.org/353024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button_cell.h')
-rw-r--r--chrome/browser/cocoa/bookmark_button_cell.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_button_cell.h b/chrome/browser/cocoa/bookmark_button_cell.h
index 252ed08..f8ca25d 100644
--- a/chrome/browser/cocoa/bookmark_button_cell.h
+++ b/chrome/browser/cocoa/bookmark_button_cell.h
@@ -13,6 +13,11 @@
@interface BookmarkButtonCell : GradientButtonCell<NSMenuDelegate> {
}
+// |-setBookmarkCellText:image:| is used to set the text and image
+// of a BookmarkButtonCell, and align the image to the left (NSImageLeft)
+// if there is text in the title, and centered (NSImageCenter) if there is
+- (void)setBookmarkCellText:(NSString*)title
+ image:(NSImage*)image;
@end
#endif // CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_