summaryrefslogtreecommitdiffstats
path: root/content/common/input_messages.h
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 02:41:55 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 02:41:55 +0000
commitc2eaa8f869857915f5c04afc09e965d54045d81b (patch)
tree6e41fab7c8e968d1610e997a0b695cd8de047418 /content/common/input_messages.h
parent8d224864ab1bd9cdd2f02cf930ff7b06f8e264e2 (diff)
downloadchromium_src-c2eaa8f869857915f5c04afc09e965d54045d81b.zip
chromium_src-c2eaa8f869857915f5c04afc09e965d54045d81b.tar.gz
chromium_src-c2eaa8f869857915f5c04afc09e965d54045d81b.tar.bz2
Add latency info to input events sent to RenderWidget.
This keeps track of the latency info for input events, and sends that down into the RenderWidget and into the compositor. It also collects the latency info when swap happens with gtk and returns it the the RenderWidgetHostImpl. BUG=155367 Review URL: https://chromiumcodereview.appspot.com/13931009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/input_messages.h')
-rw-r--r--content/common/input_messages.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index 2c9c0b9..a9739fa 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -7,6 +7,7 @@
// Multiply-included message file, hence no include guard.
#include "base/string16.h"
+#include "cc/debug/latency_info.h"
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/common/edit_command.h"
@@ -34,8 +35,9 @@ IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
IPC_STRUCT_TRAITS_END()
// Sends an input event to the render widget.
-IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent,
+IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent,
IPC::WebInputEventPointer /* event */,
+ cc::LatencyInfo /* latency_info */,
bool /* is_keyboard_shortcut */)
// Sends the cursor visibility state to the render widget.