Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |