Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index aedac37756a11d5070e67bf3d8a48edc66cb1726..14d7ea13dee7a1ecce126e460bd4232dbb144089 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -51,6 +51,7 @@ |
#include "ui/gfx/rect.h" |
#include "ui/gfx/rect_f.h" |
#include "ui/gfx/vector2d.h" |
+#include "webkit/compositor_bindings/web_latency_info_impl.h" |
#include "webkit/glue/webcookie.h" |
#include "webkit/glue/webmenuitem.h" |
#include "webkit/plugins/npapi/webplugin.h" |
@@ -288,6 +289,15 @@ IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) |
IPC_STRUCT_TRAITS_MEMBER(display_name) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(inputNumber) |
+ IPC_STRUCT_TRAITS_MEMBER(rendererMainFrameNumber) |
+ IPC_STRUCT_TRAITS_MEMBER(rendererImplFrameNumber) |
+ IPC_STRUCT_TRAITS_MEMBER(browserMainFrameNumber) |
+ IPC_STRUCT_TRAITS_MEMBER(browserImplFrameNumber) |
+ IPC_STRUCT_TRAITS_MEMBER(swapTimestamp) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) |
// Routing ID of the view initiating the open. |
IPC_STRUCT_MEMBER(int, opener_id) |
@@ -506,6 +516,9 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) |
// All the above coordinates are in DIP. This is the scale factor needed |
// to convert them to pixels. |
IPC_STRUCT_MEMBER(float, scale_factor) |
+ |
+ // The frame number this update rect corresponds to. |
+ IPC_STRUCT_MEMBER(cc::LatencyInfo, latency_info) |
IPC_STRUCT_END() |
IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
@@ -817,10 +830,15 @@ IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) |
IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
// Sends an input event to the render widget. |
-IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, |
+IPC_MESSAGE_ROUTED3(ViewMsg_HandleInputEvent, |
+ int64 /* input_number */, |
IPC::WebInputEventPointer /* event */, |
bool /* is_keyboard_shortcut */) |
+// A new frame with a new input number has started. |
+IPC_MESSAGE_ROUTED1(ViewMsg_StartFrame, |
+ int64 /* input_number */) |
+ |
// Tells the render widget that a smooth scroll completed. |
IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, |
int /* gesture_id */) |