Chromium Code Reviews| 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..84c5c5cad8a2ede21fb1ee193761ea7c031c21a2 100644 |
| --- a/chrome/renderer/autofill/autofill_agent.cc |
| +++ b/chrome/renderer/autofill/autofill_agent.cc |
| @@ -155,6 +155,12 @@ void AutofillAgent::WillSubmitForm(WebFrame* frame, |
| } |
| } |
| +void AutofillAgent::DidHandleWheelEvent( |
| + const WebKit::WebMouseWheelEvent& event) { |
| + // Any time the page scroll any Autofill popups should be hidden. |
|
Ilya Sherman
2012/04/24 20:15:29
nit: Perhaps mention why this only needs to happen
csharp
2012/04/24 20:22:39
Done.
|
| + Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); |
| +} |
| + |
| bool AutofillAgent::InputElementClicked(const WebInputElement& element, |
| bool was_focused, |
| bool is_focused) { |