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

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

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to "selection" nomenclature Created 7 years, 1 month 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 7989d864dbbc6ae708986a8c7ea4656a321a5926..f8699fee9cbc1033f8c684e3bfc35f5737015656 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
@@ -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_->LineAcceptedAtPoint(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_->LineSelectedAtPoint(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_->SelectionCleared();
}
#pragma mark -

Powered by Google App Engine
This is Rietveld 408576698