diff options
author | rbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 00:35:51 +0000 |
---|---|---|
committer | rbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 00:35:51 +0000 |
commit | 5d0bbdfa9c671b9e7b537693f27b62f2fa81ba0e (patch) | |
tree | 1af55c52b355916e7f8c9b41e4046996e679c63f /content/common/input_messages.h | |
parent | f96555c2b2e2590476bae50683a168b101c137f4 (diff) | |
download | chromium_src-5d0bbdfa9c671b9e7b537693f27b62f2fa81ba0e.zip chromium_src-5d0bbdfa9c671b9e7b537693f27b62f2fa81ba0e.tar.gz chromium_src-5d0bbdfa9c671b9e7b537693f27b62f2fa81ba0e.tar.bz2 |
Initial browser-side implementation for touch-action
Receive SetTouchAction messages and filter GestureEvents in the browser
based on them.
The logic here so far is pretty trivial, but will get more complex, eg:
- addition of pinch and double-tap gesture handling
- support for pan-x, pan-y, pan-x/y and potentially other touch actions
- more sophisticated handling of multiple fingers (pending WG discussion)
See touch-action design doc at http://goo.gl/KcKbxQ for more details.
Depends on blink-side change in https://codereview.chromium.org/16507017/
BUG=316735
Review URL: https://codereview.chromium.org/67383002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/input_messages.h')
-rw-r--r-- | content/common/input_messages.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/common/input_messages.h b/content/common/input_messages.h index 3ea17c7..235cfa3c5 100644 --- a/content/common/input_messages.h +++ b/content/common/input_messages.h @@ -18,6 +18,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" @@ -41,6 +42,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) @@ -175,6 +178,9 @@ IPC_MESSAGE_ROUTED3(InputHostMsg_HandleInputEvent_ACK, IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture, content::SyntheticGesturePacket) +// 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 |