| 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.
|
|
|