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

Unified Diff: content/common/input_messages.h

Issue 67383002: Initial browser-side implementation for touch-action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks from sadrul/jdduke CR Created 7 years, 1 month 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/common/input_messages.h
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index 603053f750ccc4d5ffb10b3d93a4059ad81bdece..25b420cb7b4fff861e626dc81eb7419f71ddb709 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -17,6 +17,7 @@
#include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
#include "content/port/common/input_event_ack_state.h"
#include "content/public/common/common_param_traits.h"
+#include "content/common/input/touch_action.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "ui/events/latency_info.h"
@@ -40,6 +41,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(
IPC_ENUM_TRAITS_MAX_VALUE(
content::SyntheticGestureParams::GestureType,
content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX)
+IPC_ENUM_TRAITS_MAX_VALUE(content::TouchAction,
+ content::TOUCH_ACTION_MAX)
IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
IPC_STRUCT_TRAITS_MEMBER(name)
@@ -168,6 +171,9 @@ IPC_MESSAGE_ROUTED3(InputHostMsg_HandleInputEvent_ACK,
content::InputEventAckState /* ack_result */,
ui::LatencyInfo /* latency_info */)
+// Notifies the allowed touch actions for a new touch point.
+IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction,
+ content::TouchAction /* touch_action */)
// Adding a new message? Stick to the sort order above: first platform
// independent InputMsg, then ifdefs for platform specific InputMsg, then

Powered by Google App Engine
This is Rietveld 408576698