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

Unified Diff: content/common/view_messages.h

Issue 67383002: Initial browser-side implementation for touch-action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/common/input/touch_action.h ('k') | content/public/common/touch_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 356d33f4e10f18ad3f6378e3b1a232ffb282eeff..7f3da0b7d492d1814d6a7a9133631b68ed14fa03 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -33,6 +33,7 @@
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/stop_find_action.h"
#include "content/public/common/three_d_api_types.h"
+#include "content/public/common/touch_action.h"
#include "content/public/common/window_container_type.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
@@ -90,6 +91,7 @@ IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
IPC_ENUM_TRAITS(content::StopFindAction)
IPC_ENUM_TRAITS(content::ThreeDAPIType)
+IPC_ENUM_TRAITS(content::TouchAction)
IPC_ENUM_TRAITS(media::ChannelLayout)
IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
IPC_ENUM_TRAITS(ui::MenuSourceType)
@@ -1859,6 +1861,11 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents,
IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
bool /* has_handlers */)
+// Notifies the allowed touch actions for a new touch point.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchAction,
jdduke (slow) 2013/11/18 15:56:00 Could we make this an InputHostMsg and put in cont
Rick Byers 2013/11/19 22:14:59 Done. I saw this as similar to ViewHostMsg_HasTou
jdduke (slow) 2013/11/20 00:35:23 Ah, you're right of course. I've been meaning to
+ int /* touch_id */,
+ content::TouchAction /* touch_actions */)
+
// A message from HTML-based UI. When (trusted) Javascript calls
// send(message, args), this message is sent to the browser.
IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
« no previous file with comments | « content/common/input/touch_action.h ('k') | content/public/common/touch_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698