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

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

Issue 2703253007: Use (i) icon and the same tooltip for the credit cards dialog and account chooser on Mac. (Closed)
Patch Set: rebase Created 3 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
Index: chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
index d16b63515b6ccb16adad9515f701f32a2a51bb0e..408922a470c56f4366e467c856f37c53041cf3cc 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm
@@ -102,10 +102,12 @@ CGFloat kTooltipInset = 10;
@implementation AutofillTooltipController
@synthesize message = message_;
+@synthesize maxTooltipWidth = maxTooltipWidth_;
- (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation {
if ((self = [super init])) {
arrowLocation_ = arrowLocation;
+ maxTooltipWidth_ = CGFLOAT_MAX;
view_.reset([[AutofillTooltip alloc] init]);
[self setView:view_];
[view_ setTooltipController:self];
@@ -134,12 +136,12 @@ CGFloat kTooltipInset = 10;
- (void)displayHover {
[bubbleController_ close];
- bubbleController_ =
- [[AutofillBubbleController alloc]
- initWithParentWindow:[[self view] window]
- message:[self message]
- inset:NSMakeSize(kTooltipInset, kTooltipInset)
- arrowLocation:arrowLocation_];
+ bubbleController_ = [[AutofillBubbleController alloc]
+ initWithParentWindow:[[self view] window]
+ message:[self message]
+ inset:NSMakeSize(kTooltipInset, kTooltipInset)
+ maxLabelWidth:maxTooltipWidth_
+ arrowLocation:arrowLocation_];
[bubbleController_ setShouldCloseOnResignKey:NO];
// Handle bubble self-deleting.

Powered by Google App Engine
This is Rietveld 408576698