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

Unified Diff: third_party/WebKit/Source/core/input/TouchActionUtil.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/input/TouchActionUtil.cpp
diff --git a/third_party/WebKit/Source/core/input/TouchActionUtil.cpp b/third_party/WebKit/Source/core/input/TouchActionUtil.cpp
index 5b4318675030c567b0542b41c632e32214b6254d..e482126c98af4e35d3c819b9410e3d3f779298b9 100644
--- a/third_party/WebKit/Source/core/input/TouchActionUtil.cpp
+++ b/third_party/WebKit/Source/core/input/TouchActionUtil.cpp
@@ -50,8 +50,8 @@ TouchAction ComputeEffectiveTouchAction(const Node& node) {
// prohibited actions at or below the element that supports them.
// I.e. pan-related actions are considered up to the nearest scroller,
// and zoom related actions are considered up to the root.
- TouchAction effective_touch_action = kTouchActionAuto;
- TouchAction handled_touch_actions = kTouchActionNone;
+ TouchAction effective_touch_action = TouchAction::kTouchActionAuto;
+ TouchAction handled_touch_actions = TouchAction::kTouchActionNone;
for (const Node* cur_node = &node; cur_node;
cur_node = ParentNodeAcrossFrames(cur_node)) {
if (LayoutObject* layout_object = cur_node->GetLayoutObject()) {
@@ -59,7 +59,7 @@ TouchAction ComputeEffectiveTouchAction(const Node& node) {
TouchAction action = layout_object->Style()->GetTouchAction();
action |= handled_touch_actions;
effective_touch_action &= action;
- if (effective_touch_action == kTouchActionNone)
+ if (effective_touch_action == TouchAction::kTouchActionNone)
break;
}
@@ -68,7 +68,7 @@ TouchAction ComputeEffectiveTouchAction(const Node& node) {
if ((layout_object->IsBox() &&
ToLayoutBox(layout_object)->ScrollsOverflow()) ||
layout_object->IsLayoutView())
- handled_touch_actions |= kTouchActionPan;
+ handled_touch_actions |= TouchAction::kTouchActionPan;
}
}
return effective_touch_action;
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchActionUtil.h ('k') | third_party/WebKit/Source/core/input/TouchEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698