summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill/autofill_agent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/autofill/autofill_agent.cc')
-rw-r--r--chrome/renderer/autofill/autofill_agent.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc
index f250e4f..0b28d45 100644
--- a/chrome/renderer/autofill/autofill_agent.cc
+++ b/chrome/renderer/autofill/autofill_agent.cc
@@ -155,6 +155,20 @@ void AutofillAgent::WillSubmitForm(WebFrame* frame,
}
}
+void AutofillAgent::ZoomLevelChanged() {
+ // Any time the zoom level changes, the page's content moves, so any Autofill
+ // popups should be hidden. This is only needed for the new Autofill UI
+ // because WebKit already knows to hide the old UI when this occurs.
+ Send(new AutofillHostMsg_HideAutofillPopup(routing_id()));
+}
+
+void AutofillAgent::DidChangeScrollOffset(WebKit::WebFrame*) {
+ // Any time the scroll offset changes, the page's content moves, so Autofill
+ // popups should be hidden. This is only needed for the new Autofill UI
+ // because WebKit already knows to hide the old UI when this occurs.
+ Send(new AutofillHostMsg_HideAutofillPopup(routing_id()));
+}
+
bool AutofillAgent::InputElementClicked(const WebInputElement& element,
bool was_focused,
bool is_focused) {