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

Unified Diff: content/renderer/render_widget.cc

Issue 1137153003: Implement direction-specific touch-action values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | 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 0b8d2fff3b140a5c84568a477d7dee8ae028ff42..f6ab582fef37f079b26bc7771d79f9315d6506ba 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2336,10 +2336,6 @@ void RenderWidget::setTouchAction(
if (handling_event_type_ != WebInputEvent::TouchStart)
return;
-// TODO(dtapuska): A dependant change needs to land in blink to change
-// the blink::WebTouchAction enum; in the meantime don't do
-// a static cast between the values. (http://crbug.com/476556)
-#if 0
// Verify the same values are used by the types so we can cast between them.
STATIC_ASSERT_WTI_ENUM_MATCH(Auto, AUTO);
STATIC_ASSERT_WTI_ENUM_MATCH(None, NONE);
@@ -2353,18 +2349,6 @@ void RenderWidget::setTouchAction(
content::TouchAction content_touch_action =
static_cast<content::TouchAction>(web_touch_action);
-#else
- content::TouchAction content_touch_action = TOUCH_ACTION_AUTO;
- if (web_touch_action & blink::WebTouchActionNone)
- content_touch_action |= TOUCH_ACTION_NONE;
- if (web_touch_action & blink::WebTouchActionPanX)
- content_touch_action |= TOUCH_ACTION_PAN_X;
- if (web_touch_action & blink::WebTouchActionPanY)
- content_touch_action |= TOUCH_ACTION_PAN_Y;
- if (web_touch_action & blink::WebTouchActionPinchZoom)
- content_touch_action |= TOUCH_ACTION_PINCH_ZOOM;
-
-#endif
Send(new InputHostMsg_SetTouchAction(routing_id_, content_touch_action));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698