Commit df5088a6 authored by estade's avatar estade Committed by Commit bot

Update autocomplete dropdown when datalist changes.

Blink side: https://codereview.chromium.org/799893004

BUG=428790

Review URL: https://codereview.chromium.org/798073003

Cr-Commit-Position: refs/heads/master@{#308305}
parent 0e893e92
...@@ -449,6 +449,13 @@ void AutofillAgent::openTextDataListChooser(const WebInputElement& element) { ...@@ -449,6 +449,13 @@ void AutofillAgent::openTextDataListChooser(const WebInputElement& element) {
ShowSuggestions(element, options); ShowSuggestions(element, options);
} }
void AutofillAgent::dataListOptionsChanged(const WebInputElement& element) {
if (!is_popup_possibly_visible_ || !element.focused())
return;
TextFieldDidChangeImpl(element);
}
void AutofillAgent::firstUserGestureObserved() { void AutofillAgent::firstUserGestureObserved() {
password_autofill_agent_->FirstUserGestureObserved(); password_autofill_agent_->FirstUserGestureObserved();
Send(new AutofillHostMsg_FirstUserGestureObserved(routing_id())); Send(new AutofillHostMsg_FirstUserGestureObserved(routing_id()));
......
...@@ -148,6 +148,7 @@ class AutofillAgent : public content::RenderFrameObserver, ...@@ -148,6 +148,7 @@ class AutofillAgent : public content::RenderFrameObserver,
virtual void didAssociateFormControls( virtual void didAssociateFormControls(
const blink::WebVector<blink::WebNode>& nodes); const blink::WebVector<blink::WebNode>& nodes);
virtual void openTextDataListChooser(const blink::WebInputElement& element); virtual void openTextDataListChooser(const blink::WebInputElement& element);
virtual void dataListOptionsChanged(const blink::WebInputElement& element);
virtual void firstUserGestureObserved(); virtual void firstUserGestureObserved();
void OnFieldTypePredictionsAvailable( void OnFieldTypePredictionsAvailable(
......
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