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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: add cstdlib Created 3 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
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 9d4e5c14c0e8de4d66f367f8eff7ae977eaba06c..1daf561861fb978098871d665ddc317d8e39a536 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1181,27 +1181,30 @@ static CSSValue* ValueForTextDecorationSkip(
static CSSValue* TouchActionFlagsToCSSValue(TouchAction touch_action) {
CSSValueList* list = CSSValueList::CreateSpaceSeparated();
- if (touch_action == kTouchActionAuto) {
+ if (touch_action == TouchAction::kTouchActionAuto) {
list->Append(*CSSIdentifierValue::Create(CSSValueAuto));
- } else if (touch_action == kTouchActionNone) {
+ } else if (touch_action == TouchAction::kTouchActionNone) {
list->Append(*CSSIdentifierValue::Create(CSSValueNone));
- } else if (touch_action == kTouchActionManipulation) {
+ } else if (touch_action == TouchAction::kTouchActionManipulation) {
list->Append(*CSSIdentifierValue::Create(CSSValueManipulation));
} else {
- if ((touch_action & kTouchActionPanX) == kTouchActionPanX)
+ if ((touch_action & TouchAction::kTouchActionPanX) ==
+ TouchAction::kTouchActionPanX)
list->Append(*CSSIdentifierValue::Create(CSSValuePanX));
- else if (touch_action & kTouchActionPanLeft)
+ else if (touch_action & TouchAction::kTouchActionPanLeft)
list->Append(*CSSIdentifierValue::Create(CSSValuePanLeft));
- else if (touch_action & kTouchActionPanRight)
+ else if (touch_action & TouchAction::kTouchActionPanRight)
list->Append(*CSSIdentifierValue::Create(CSSValuePanRight));
- if ((touch_action & kTouchActionPanY) == kTouchActionPanY)
+ if ((touch_action & TouchAction::kTouchActionPanY) ==
+ TouchAction::kTouchActionPanY)
list->Append(*CSSIdentifierValue::Create(CSSValuePanY));
- else if (touch_action & kTouchActionPanUp)
+ else if (touch_action & TouchAction::kTouchActionPanUp)
list->Append(*CSSIdentifierValue::Create(CSSValuePanUp));
- else if (touch_action & kTouchActionPanDown)
+ else if (touch_action & TouchAction::kTouchActionPanDown)
list->Append(*CSSIdentifierValue::Create(CSSValuePanDown));
- if ((touch_action & kTouchActionPinchZoom) == kTouchActionPinchZoom)
+ if ((touch_action & TouchAction::kTouchActionPinchZoom) ==
+ TouchAction::kTouchActionPinchZoom)
list->Append(*CSSIdentifierValue::Create(CSSValuePinchZoom));
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/events/TouchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698