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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.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/layout/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index b0024298e9c242d2244f381b04eac44ce6b41e69..1733121f52b8a42bb2a00855ba1ba1eab8f70399 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -50,6 +50,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/Theme.h"
#include "platform/fonts/FontSelector.h"
+#include "platform/graphics/TouchAction.h"
#include "platform/text/PlatformLocale.h"
#include "platform/text/StringTruncator.h"
#include "platform/wtf/text/StringBuilder.h"
@@ -626,10 +627,10 @@ void LayoutTheme::AdjustSliderContainerStyle(ComputedStyle& style,
if (e && (e->ShadowPseudoId() == "-webkit-media-slider-container" ||
e->ShadowPseudoId() == "-webkit-slider-container")) {
if (style.Appearance() == kSliderVerticalPart) {
- style.SetTouchAction(kTouchActionPanX);
+ style.SetTouchAction(TouchAction::kTouchActionPanX);
style.SetAppearance(kNoControlPart);
} else {
- style.SetTouchAction(kTouchActionPanY);
+ style.SetTouchAction(TouchAction::kTouchActionPanY);
style.SetAppearance(kNoControlPart);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698