Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4110)

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm

Issue 2729603008: [Mac] Remove bookmark bar NIB (Closed)
Patch Set: CL comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
index 1b2578c22d0859ea9f0723a867eddd9db124bf81..4a0ef76af8fd63a1c480b931aae42591b363dd4b 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
@@ -37,6 +37,8 @@ const int kDefaultFontSize = 12;
}; // namespace
+// TODO(lgrey): Bake setting the chevron image into this
+// class instead of setting it externally.
@interface OffTheSideButtonCell : BookmarkButtonCell
- (NSString*)accessibilityTitle;
@@ -106,6 +108,10 @@ const int kDefaultFontSize = 12;
return buttonCell;
}
++ (id)offTheSideButtonCell {
+ return [[[OffTheSideButtonCell alloc] init] autorelease];
+}
+
- (id)initForNode:(const BookmarkNode*)node
text:(NSString*)text
image:(NSImage*)image

Powered by Google App Engine
This is Rietveld 408576698