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

Unified Diff: content/renderer/render_widget.cc

Issue 197273003: Add support for touch-action: manipulation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move validation to IPC layer Created 6 years, 9 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_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 198d7d4cdfeef0e149fe91ac495c13cadc3f0f95..09847dbc248c8924f03f9a942704ce2813b72a04 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2719,6 +2719,10 @@ void RenderWidget::setTouchAction(
COMPILE_ASSERT(static_cast<blink::WebTouchAction>(TOUCH_ACTION_PAN_Y) ==
blink::WebTouchActionPanY,
enum_values_must_match_for_touch_action);
+ COMPILE_ASSERT(
+ static_cast<blink::WebTouchAction>(TOUCH_ACTION_PINCH_ZOOM) ==
+ blink::WebTouchActionPinchZoom,
+ enum_values_must_match_for_touch_action);
content::TouchAction content_touch_action =
static_cast<content::TouchAction>(web_touch_action);
« no previous file with comments | « content/common/input_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698