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

Unified Diff: third_party/WebKit/public/platform/WebTouchAction.h

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: more tests 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/public/platform/WebTouchAction.h
diff --git a/third_party/WebKit/public/platform/WebTouchAction.h b/third_party/WebKit/public/platform/WebTouchAction.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce855a0a86e0981bfc9f7b65b7b900b0f077146b
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebTouchAction.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebTouchAction_h
+#define WebTouchAction_h
+
+#if BLINK_IMPLEMENTATION
+#include "platform/graphics/TouchAction.h"
+#else
+#include "cc/input/touch_action.h"
+#endif
+
+namespace blink {
+
+// The only reason of creating a WebTouchAction is that there is a virtual
+// function under WebWidgetClient that is overridden by classes under content/
+// and WebKit/.
+#if BLINK_IMPLEMENTATION
jbroman 2017/05/09 14:40:26 Just unconditionally use the cc one. We already do
+using WebTouchAction = blink::TouchAction;
+#else
+using WebTouchAction = cc::TouchAction;
+#endif
+
+} // namespace blink
+
+#endif // WebTouchAction_h

Powered by Google App Engine
This is Rietveld 408576698