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

Unified Diff: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Gtk and Cocoa compile errors Created 7 years, 2 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/gtk/autofill/autofill_popup_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
index 98325f594dc4428520245cfb6b9150e801006fb6..b0928563ed7a9539630766564b4773284f1c7e79 100644
--- a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
+++ b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
@@ -117,7 +117,7 @@ gboolean AutofillPopupViewGtk::HandleButtonRelease(GtkWidget* widget,
if (event->button != 1)
return FALSE;
- controller_->MouseClicked(event->x, event->y);
+ controller_->PointPreselected(event->x, event->y);
return TRUE;
}
@@ -158,14 +158,14 @@ gboolean AutofillPopupViewGtk::HandleExpose(GtkWidget* widget,
gboolean AutofillPopupViewGtk::HandleLeave(GtkWidget* widget,
GdkEventCrossing* event) {
- controller_->MouseExitedPopup();
+ controller_->PreselectionCleared();
return FALSE;
}
gboolean AutofillPopupViewGtk::HandleMotion(GtkWidget* widget,
GdkEventMotion* event) {
- controller_->MouseHovered(event->x, event->y);
+ controller_->PointPreselected(event->x, event->y);
return TRUE;
}
@@ -212,7 +212,7 @@ void AutofillPopupViewGtk::DrawSeparator(cairo_t* cairo_context,
void AutofillPopupViewGtk::DrawAutofillEntry(cairo_t* cairo_context,
size_t index,
const gfx::Rect& entry_rect) {
- if (controller_->selected_line() == static_cast<int>(index)) {
+ if (controller_->preselected_line() == static_cast<int>(index)) {
gdk_cairo_set_source_color(cairo_context, &kHoveredBackgroundColor);
cairo_rectangle(cairo_context, entry_rect.x(), entry_rect.y(),
entry_rect.width(), entry_rect.height());

Powered by Google App Engine
This is Rietveld 408576698