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

Unified Diff: Source/core/css/CSSPrimitiveValueMappings.h

Issue 87973002: add pan-x and pan-y support to CSS touch-action parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge to trunk Created 7 years 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: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
old mode 100644
new mode 100755
index 8962136e91a2ce428f2ad16183ea280b428a0a87..24800303dd884b271845afa79330ba9da280a7a4
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -4872,6 +4872,12 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TouchAction t)
case TouchActionAuto:
m_value.valueID = CSSValueAuto;
break;
+ case TouchActionPanX:
Rick Byers 2013/12/06 21:44:04 I think these two functions should go away. They
gnana 2013/12/10 18:24:37 Removing this two function caused build error. Wor
Rick Byers 2013/12/10 21:57:14 Ok. It's possible I'm missing something here - le
gnana 2013/12/11 14:02:53 Done. I removed one function. But cannot remove th
Rick Byers 2013/12/12 15:30:35 Yeah, I was thinking you'd want to essentially inl
+ m_value.valueID = CSSValuePanX;
+ break;
+ case TouchActionPanY:
+ m_value.valueID = CSSValuePanY;
+ break;
}
}
@@ -4883,6 +4889,10 @@ template<> inline CSSPrimitiveValue::operator TouchAction() const
return TouchActionNone;
case CSSValueAuto:
return TouchActionAuto;
+ case CSSValuePanX:
+ return TouchActionPanX;
+ case CSSValuePanY:
+ return TouchActionPanY;
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698