Commit 36fa5b4c authored by Fabio Tirelo's avatar Fabio Tirelo Committed by Commit Bot

[AF] Notify row on mouse events on child views

The current implementation considers that a hover on the label or the
icon corresponds to a mouse exit event for the row, leading to the
current row being deselected. This CL fixes that by notifying the row
view on mouse enter/exit on child events as well.

Bug: 861996
Change-Id: If187048b2893afb7c779f91010b7b225d0da49d7
Reviewed-on: https://chromium-review.googlesource.com/1142035Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Fabio Tirelo <ftirelo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576142}
parent 9bc6b47b
...@@ -525,7 +525,9 @@ bool AutofillPopupRowView::OnMousePressed(const ui::MouseEvent& event) { ...@@ -525,7 +525,9 @@ bool AutofillPopupRowView::OnMousePressed(const ui::MouseEvent& event) {
AutofillPopupRowView::AutofillPopupRowView( AutofillPopupRowView::AutofillPopupRowView(
AutofillPopupViewNativeViews* popup_view, AutofillPopupViewNativeViews* popup_view,
int line_number) int line_number)
: popup_view_(popup_view), line_number_(line_number) {} : popup_view_(popup_view), line_number_(line_number) {
set_notify_enter_exit_on_child(true);
}
void AutofillPopupRowView::Init() { void AutofillPopupRowView::Init() {
CreateContent(); CreateContent();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment