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

Unified Diff: content/common/input_messages.h

Issue 281723010: Bundle DidOverscrollParams with the InputEventAck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests 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
« no previous file with comments | « content/common/input/input_event_ack.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input_messages.h
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index df67c713d543e5b355dc0d77ac6b300cfb3f7f8d..6f3eb955d85d206a4dd5e312cd63dc17b441e171 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -10,7 +10,9 @@
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/common/edit_command.h"
+#include "content/common/input/did_overscroll_params.h"
#include "content/common/input/input_event.h"
+#include "content/common/input/input_event_ack.h"
#include "content/common/input/input_event_ack_state.h"
#include "content/common/input/input_param_traits.h"
#include "content/common/input/synthetic_gesture_packet.h"
@@ -25,6 +27,7 @@
#include "ui/events/latency_info.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
+#include "ui/gfx/vector2d_f.h"
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
@@ -51,6 +54,12 @@ IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, (
(!(value & content::TOUCH_ACTION_PINCH_ZOOM) ||
(value == content::TOUCH_ACTION_MANIPULATION))))
+IPC_STRUCT_TRAITS_BEGIN(content::DidOverscrollParams)
+ IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
+ IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
+ IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
IPC_STRUCT_TRAITS_MEMBER(name)
IPC_STRUCT_TRAITS_MEMBER(value)
@@ -62,6 +71,13 @@ IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
IPC_STRUCT_TRAITS_MEMBER(is_keyboard_shortcut)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck)
+ IPC_STRUCT_TRAITS_MEMBER(type)
+ IPC_STRUCT_TRAITS_MEMBER(state)
+ IPC_STRUCT_TRAITS_MEMBER(latency)
+ IPC_STRUCT_TRAITS_MEMBER(overscroll)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::SyntheticGestureParams)
IPC_STRUCT_TRAITS_MEMBER(gesture_source_type)
IPC_STRUCT_TRAITS_END()
@@ -177,10 +193,8 @@ IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted);
// Messages sent from the renderer to the browser.
// Acknowledges receipt of a InputMsg_HandleInputEvent message.
-IPC_MESSAGE_ROUTED3(InputHostMsg_HandleInputEvent_ACK,
- blink::WebInputEvent::Type,
- content::InputEventAckState /* ack_result */,
- ui::LatencyInfo /* latency_info */)
+IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK,
+ content::InputEventAck /* ack */)
IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture,
content::SyntheticGesturePacket)
@@ -189,6 +203,11 @@ IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture,
IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction,
content::TouchAction /* touch_action */)
+// Sent by the compositor when input scroll events are dropped due to bounds
+// restricions on the root scroll offset.
tdresser 2014/05/14 18:20:08 restricions -> restrictions
jdduke (slow) 2014/05/19 20:48:03 Done.
+IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll,
+ content::DidOverscrollParams /* params */)
+
// Adding a new message? Stick to the sort order above: first platform
// independent InputMsg, then ifdefs for platform specific InputMsg, then
// platform independent InputHostMsg, then ifdefs for platform specific
« no previous file with comments | « content/common/input/input_event_ack.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698