[Android WebView] Fix webview perf bot switchover to use org.chromium.webview_shell...
[chromium-blink-merge.git] / content / common / input / touch_action.h
blob89f000df7bd19124496f57e61bafb9874332c434
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_INPUT_TOUCH_ACTION_H_
6 #define CONTENT_COMMON_INPUT_TOUCH_ACTION_H_
8 namespace content {
10 // The current touch action specifies what accelerated browser operations
11 // (panning and zooming) are currently permitted via touch input.
12 // See http://www.w3.org/TR/pointerevents/#the-touch-action-css-property.
13 enum TouchAction {
14 // All actions are pemitted (the default).
15 TOUCH_ACTION_AUTO = 0,
17 // No scrolling or zooming allowed.
18 TOUCH_ACTION_NONE = 1 << 0,
20 TOUCH_ACTION_PAN_LEFT = 1 << 1,
22 TOUCH_ACTION_PAN_RIGHT = 1 << 2,
24 TOUCH_ACTION_PAN_X = TOUCH_ACTION_PAN_LEFT | TOUCH_ACTION_PAN_RIGHT,
26 TOUCH_ACTION_PAN_UP = 1 << 3,
28 TOUCH_ACTION_PAN_DOWN = 1 << 4,
30 TOUCH_ACTION_PAN_Y = TOUCH_ACTION_PAN_UP | TOUCH_ACTION_PAN_DOWN,
32 TOUCH_ACTION_PAN_X_Y = TOUCH_ACTION_PAN_X | TOUCH_ACTION_PAN_Y,
34 TOUCH_ACTION_PINCH_ZOOM = 1 << 5,
36 TOUCH_ACTION_MANIPULATION = TOUCH_ACTION_PAN_X_Y | TOUCH_ACTION_PINCH_ZOOM,
38 TOUCH_ACTION_MAX = (1 << 6) - 1
41 } // namespace content
43 #endif // CONTENT_COMMON_INPUT_TOUCH_ACTION_H_