Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: chrome/renderer/autofill/autofill_agent.cc

Issue 10218001: Add ZoomLevelChanged and DidChangeScrollOffset to RenderViewObserver (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/autofill/autofill_agent.h ('k') | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/renderer/autofill/autofill_agent.h ('k') | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698