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

Unified Diff: content/common/input/touch_action.h

Issue 93733005: Implement support for touch-action: pan-x/pan-y in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply jdduke CR feedback Created 7 years 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/touch_action.h
diff --git a/content/common/input/touch_action.h b/content/common/input/touch_action.h
index 95cee2595b2256da34b34af3a0b14b3f9978023e..6bd2ddbc8bd7f6e67837e498f59598bd6a8a50ac 100644
--- a/content/common/input/touch_action.h
+++ b/content/common/input/touch_action.h
@@ -11,13 +11,19 @@ namespace content {
// (panning and zooming) are currently permitted via touch input.
// See http://www.w3.org/TR/pointerevents/#the-touch-action-css-property.
enum TouchAction {
+ // All actions are pemitted (the default).
+ TOUCH_ACTION_AUTO = 0,
jdduke (slow) 2013/12/19 16:17:16 In the future, having TOUCH_ACTION_AUTO be the uni
Rick Byers 2013/12/19 16:35:09 We can't actually - the semantics are different.
+
// No scrolling or zooming allowed.
- TOUCH_ACTION_NONE,
+ TOUCH_ACTION_NONE = 1 << 0,
- // All actions are pemitted (the default).
- TOUCH_ACTION_AUTO,
+ TOUCH_ACTION_PAN_X = 1 << 1,
+
+ TOUCH_ACTION_PAN_Y = 1 << 2,
+
+ TOUCH_ACTION_PAN_X_Y = TOUCH_ACTION_PAN_X | TOUCH_ACTION_PAN_Y,
- TOUCH_ACTION_MAX = TOUCH_ACTION_AUTO
+ TOUCH_ACTION_MAX = (1 << 3) - 1
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698