| Index: chrome/renderer/autofill/autofill_agent.cc
|
| diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc
|
| index f250e4fd5ac2566f201cce9ab5b21b60a09b508a..0b28d452e6dd2af761b116f6b78eb7028373cc1c 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) {
|
|
|