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 |