Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebTouchEvent.h |
| diff --git a/third_party/WebKit/public/platform/WebTouchEvent.h b/third_party/WebKit/public/platform/WebTouchEvent.h |
| index 4a011b31b27802a399ce8ca94bfb876897a3c234..be161dad25f44d5f4be7f105c06fac3724d5a83b 100644 |
| --- a/third_party/WebKit/public/platform/WebTouchEvent.h |
| +++ b/third_party/WebKit/public/platform/WebTouchEvent.h |
| @@ -48,6 +48,17 @@ class WebTouchEvent : public WebInputEvent { |
| WebTouchEvent(Type type, int modifiers, double timeStampSeconds) |
| : WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds), |
| dispatchType(Blocking) {} |
| + |
| +#if INSIDE_BLINK |
| + |
| + // Sets any scaled values to be their computed values and sets |frameScale| |
| + // back to 1 and |translateX|, |translateY| back to 0. |
| + BLINK_PLATFORM_EXPORT WebTouchEvent flattenTransform() const; |
| + BLINK_PLATFORM_EXPORT WebTouchPoint |
|
Rick Byers
2017/01/27 17:27:59
nit: please add a comment describing the purpose o
dtapuska
2017/01/27 19:22:50
Done.
|
| + touchPointInRootFrame(unsigned touchPoint) const; |
| + |
| + bool isCancelable() const { return dispatchType == Blocking; } |
| +#endif |
| }; |
| #pragma pack(pop) |