Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebTouchActionRect.h |
| diff --git a/third_party/WebKit/public/platform/WebTouchActionRect.h b/third_party/WebKit/public/platform/WebTouchActionRect.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..97f03aa67132d6775264d7692e3b5329b8313638 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/WebTouchActionRect.h |
| @@ -0,0 +1,26 @@ |
| +// 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 WebTouchActionRect_h |
| +#define WebTouchActionRect_h |
| + |
| +#include "WebRect.h" |
| + |
| +namespace blink { |
| + |
| +// WebTouchInfo stores a rect with its corresponding touch action, which will |
|
wkorman
2017/05/03 20:02:14
WebTouchInfo -> WebTouchActionRect (if we keep the
xidachen
2017/05/04 12:11:21
Changed to WebTouchInfo.
|
| +// be passed to CC through WebLayer::SetTouchEventHandlerRegion. |
|
wkorman
2017/05/03 20:02:14
Would remove the bit about "which will be passed..
xidachen
2017/05/04 12:11:21
comments updated.
|
| +struct WebTouchActionRect { |
| + WebRect rect; |
| + |
| + // Reason of using int instead of WebTouchAction: WebTouchActionRect will be |
| + // used as a parameter in WebLayer::SetTouchEventHandlerRegion which means |
| + // this file has to live under public/platform/. We cannot include |
| + // WebTouchAction because that lives under public/web/. |
| + int touch_action; |
|
wkorman
2017/05/03 20:02:14
I think we can use an enum here, following pattern
xidachen
2017/05/04 12:11:21
I think I would prefer landing a simple patch firs
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |