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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm

Issue 2517843002: Http Bad: Put icon on the left of http warning message on Views (Closed)
Patch Set: fix mac Created 4 years 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/autofill/autofill_popup_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
index a4fb09058b8dbbae42a9f9435742c0223f2be91f..c21981d1a83148c414ad13483af997296d8d6fac 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
@@ -59,6 +59,7 @@ using autofill::AutofillPopupLayoutModel;
bounds:(NSRect)bounds;
- (CGFloat)drawSubtext:(NSString*)subtext
atX:(CGFloat)x
+ index:(size_t)index
rightAlign:(BOOL)rightAlign
bounds:(NSRect)bounds
textYOffset:(CGFloat)textYOffset;
@@ -184,6 +185,7 @@ using autofill::AutofillPopupLayoutModel;
x = [self drawIconAtIndex:index atX:x rightAlign:!isRTL bounds:bounds];
[self drawSubtext:subtext
atX:x
+ index:index
rightAlign:!isRTL
bounds:bounds
textYOffset:textYOffset];
@@ -242,12 +244,13 @@ using autofill::AutofillPopupLayoutModel;
- (CGFloat)drawSubtext:(NSString*)subtext
atX:(CGFloat)x
+ index:(size_t)index
rightAlign:(BOOL)rightAlign
bounds:(NSRect)bounds
textYOffset:(CGFloat)textYOffset {
NSDictionary* subtextAttributes = [NSDictionary
dictionaryWithObjectsAndKeys:controller_->layout_model()
- .GetLabelFontList()
+ .GetLabelFontListForRow(index)
.GetPrimaryFont()
.GetNativeFont(),
NSFontAttributeName, [self subtextColor],

Powered by Google App Engine
This is Rietveld 408576698