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

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

Issue 67383002: Initial browser-side implementation for touch-action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks from sadrul/jdduke CR Created 7 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..24c90ed0902a4a239c06b40773ee5aaa29377130
--- /dev/null
+++ b/content/common/input/touch_action.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_INPUT_TOUCH_ACTION_H_
+#define CONTENT_COMMON_INPUT_TOUCH_ACTION_H_
+
+namespace content {
+
+// The current touch action specifies what accelerated browser operations
+// (panning and zooming) are currently permitted via touch input.
+// See http://www.w3.org/TR/pointerevents/#the-touch-action-css-property.
+enum TouchAction {
+ // No scrolling or zooming allowed.
+ TOUCH_ACTION_NONE,
+
+ // All actions are pemitted (the default).
+ TOUCH_ACTION_AUTO,
+
+ TOUCH_ACTION_MAX = TOUCH_ACTION_AUTO
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_INPUT_TOUCH_ACTION_H_

Powered by Google App Engine
This is Rietveld 408576698