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

Unified Diff: content/common/input_messages.h

Issue 2126323002: Add support for touch-action: pinch-zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add exception for mac Created 4 years, 3 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
Index: content/common/input_messages.h
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index 375940b25126c3f978808514e6b96518d8130778..c7920567f651f68e7be0e9899537268574204fb8 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -56,13 +56,7 @@ IPC_ENUM_TRAITS_MAX_VALUE(
POINTER_ACTION_TYPE_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
content::InputEventDispatchType::DISPATCH_TYPE_MAX)
-IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, (
- value >= 0 &&
- value <= content::TOUCH_ACTION_MAX &&
- (!(value & content::TOUCH_ACTION_NONE) ||
- (value == content::TOUCH_ACTION_NONE)) &&
- (!(value & content::TOUCH_ACTION_PINCH_ZOOM) ||
- (value == content::TOUCH_ACTION_MANIPULATION))))
+IPC_ENUM_TRAITS_MAX_VALUE(content::TouchAction, content::TOUCH_ACTION_MAX)
IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
« no previous file with comments | « content/browser/renderer_host/input/touch_action_filter_unittest.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698