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

Unified Diff: Source/core/style/ComputedStyleConstants.h

Issue 1137483003: Implement direction-specific touch-action values (blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix minor nit from patch set 1 Created 5 years, 7 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyleConstants.h
diff --git a/Source/core/style/ComputedStyleConstants.h b/Source/core/style/ComputedStyleConstants.h
index 0aa2718fe8c850a9849f26484482ea37299a1542..d3c9cf13fbc71c4f186d41eb56d62a414857ca42 100644
--- a/Source/core/style/ComputedStyleConstants.h
+++ b/Source/core/style/ComputedStyleConstants.h
@@ -486,13 +486,17 @@ enum GridAutoFlow {
enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRegionNoDrag };
-static const size_t TouchActionBits = 4;
+static const size_t TouchActionBits = 6;
enum TouchAction {
TouchActionAuto = 0x0,
TouchActionNone = 0x1,
- TouchActionPanX = 0x2,
- TouchActionPanY = 0x4,
- TouchActionPinchZoom = 0x8,
+ TouchActionPanLeft = 0x2,
+ TouchActionPanRight = 0x4,
+ TouchActionPanX = TouchActionPanLeft | TouchActionPanRight,
+ TouchActionPanUp = 0x8,
+ TouchActionPanDown = 0x10,
+ TouchActionPanY = TouchActionPanUp | TouchActionPanDown,
+ TouchActionPinchZoom = 0x20,
};
inline TouchAction operator| (TouchAction a, TouchAction b) { return TouchAction(int(a) | int(b)); }
inline TouchAction& operator|= (TouchAction& a, TouchAction b) { return a = a | b; }
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698