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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebTouchAction_h
6 #define WebTouchAction_h
7
8 #if BLINK_IMPLEMENTATION
9 #include "platform/graphics/TouchAction.h"
10 #else
11 #include "cc/input/touch_action.h"
12 #endif
13
14 namespace blink {
15
16 // The only reason of creating a WebTouchAction is that there is a virtual
17 // function under WebWidgetClient that is overridden by classes under content/
18 // and WebKit/.
19 #if BLINK_IMPLEMENTATION
jbroman 2017/05/09 14:40:26 Just unconditionally use the cc one. We already do
20 using WebTouchAction = blink::TouchAction;
21 #else
22 using WebTouchAction = cc::TouchAction;
23 #endif
24
25 } // namespace blink
26
27 #endif // WebTouchAction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698