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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_label_button.mm

Issue 160253005: [OSX] IMAGE_GRID macro for NinePartImage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/avatar_label_button.mm
diff --git a/chrome/browser/ui/cocoa/browser/avatar_label_button.mm b/chrome/browser/ui/cocoa/browser/avatar_label_button.mm
index 6ae29f0fa8dbed67d103c8c9e358dc35e61879da..47888db942e6e8b54e6b9c19a088f7e6400e8a01 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_label_button.mm
+++ b/chrome/browser/ui/cocoa/browser/avatar_label_button.mm
@@ -64,17 +64,7 @@ const CGFloat kLabelTextBottomSpacing = 4;
}
- (void)drawBezelWithFrame:(NSRect)frame inView:(NSView*)controlView {
- ui::NinePartImageIds imageIds = {
- IDR_MANAGED_USER_LABEL_TOP_LEFT,
- IDR_MANAGED_USER_LABEL_TOP,
- IDR_MANAGED_USER_LABEL_TOP_RIGHT,
- IDR_MANAGED_USER_LABEL_LEFT,
- IDR_MANAGED_USER_LABEL_CENTER,
- IDR_MANAGED_USER_LABEL_RIGHT,
- IDR_MANAGED_USER_LABEL_BOTTOM_LEFT,
- IDR_MANAGED_USER_LABEL_BOTTOM,
- IDR_MANAGED_USER_LABEL_BOTTOM_RIGHT
- };
+ ui::NinePartImageIds imageIds = IMAGE_GRID(IDR_MANAGED_USER_LABEL);
ui::DrawNinePartImage(frame, imageIds, NSCompositeSourceOver, 1.0, true);
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698