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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 27244: Don't send WebInputEvents from the renderer to the browser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
Index: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 10502)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -1200,7 +1200,7 @@
UserMetrics::RecordComputedAction(action.c_str(), process()->profile());
}
-void RenderViewHost::UnhandledInputEvent(const WebInputEvent& event) {
+void RenderViewHost::UnhandledKeyboardEvent(const WebKeyboardEvent& event) {
RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
if (view) {
// TODO(brettw) why do we have to filter these types of events here. Can't
@@ -1208,8 +1208,7 @@
// should be able to decide which ones it wants or not?
if ((event.type == WebInputEvent::KEY_DOWN) ||
(event.type == WebInputEvent::CHAR)) {
- view->HandleKeyboardEvent(
- static_cast<const WebKeyboardEvent&>(event));
+ view->HandleKeyboardEvent(event);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698