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

Unified Diff: content/renderer/input/input_event_filter.cc

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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: content/renderer/input/input_event_filter.cc
===================================================================
--- content/renderer/input/input_event_filter.cc (revision 270218)
+++ content/renderer/input/input_event_filter.cc (working copy)
@@ -146,12 +146,12 @@
}
int routing_id = message.routing_id();
- ui::LatencyInfo latency_info;
- const WebInputEvent* event = NULL;
- bool is_keyboard_shortcut;
- if (!InputMsg_HandleInputEvent::Read(
- &message, &event, &latency_info, &is_keyboard_shortcut))
+ InputMsg_HandleInputEvent::Param params;
+ if (!InputMsg_HandleInputEvent::Read(&message, &params))
return;
+ const WebInputEvent* event = params.a;
+ ui::LatencyInfo latency_info = params.b;
+ bool is_keyboard_shortcut = params.c;
DCHECK(event);
InputEventAckState ack = handler_.Run(routing_id, event, &latency_info);
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | content/renderer/input/input_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698