| 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 7989d864dbbc6ae708986a8c7ea4656a321a5926..1b5f1fa9529163281d01f7f45b85ea7905dd3036 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| @@ -139,7 +139,7 @@ NSColor* SubtextColor() {
|
| } else {
|
| NSString* name = SysUTF16ToNSString(controller_->names()[i]);
|
| NSString* subtext = SysUTF16ToNSString(controller_->subtexts()[i]);
|
| - BOOL isSelected = static_cast<int>(i) == controller_->selected_line();
|
| + BOOL isSelected = static_cast<int>(i) == controller_->preselected_line();
|
| [self drawSuggestionWithName:name
|
| subtext:subtext
|
| index:i
|
| @@ -158,8 +158,8 @@ NSColor* SubtextColor() {
|
| fromView:nil];
|
|
|
| if (NSPointInRect(location, [self bounds])) {
|
| - controller_->MouseClicked(static_cast<int>(location.x),
|
| - static_cast<int>(location.y));
|
| + controller_->PointSelected(static_cast<int>(location.x),
|
| + static_cast<int>(location.y));
|
| }
|
| }
|
|
|
| @@ -171,8 +171,8 @@ NSColor* SubtextColor() {
|
| NSPoint location = [self convertPoint:[theEvent locationInWindow]
|
| fromView:nil];
|
|
|
| - controller_->MouseHovered(static_cast<int>(location.x),
|
| - static_cast<int>(location.y));
|
| + controller_->PointPreselected(static_cast<int>(location.x),
|
| + static_cast<int>(location.y));
|
| }
|
|
|
| - (void)mouseDragged:(NSEvent*)theEvent {
|
| @@ -184,7 +184,7 @@ NSColor* SubtextColor() {
|
| if (!controller_)
|
| return;
|
|
|
| - controller_->MouseExitedPopup();
|
| + controller_->PreselectionCleared();
|
| }
|
|
|
| #pragma mark -
|
|
|