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 WebTouchActionRect_h | |
| 6 #define WebTouchActionRect_h | |
| 7 | |
| 8 #include "WebRect.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 // 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.
| |
| 13 // 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.
| |
| 14 struct WebTouchActionRect { | |
| 15 WebRect rect; | |
| 16 | |
| 17 // Reason of using int instead of WebTouchAction: WebTouchActionRect will be | |
| 18 // used as a parameter in WebLayer::SetTouchEventHandlerRegion which means | |
| 19 // this file has to live under public/platform/. We cannot include | |
| 20 // WebTouchAction because that lives under public/web/. | |
| 21 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
| |
| 22 }; | |
| 23 | |
| 24 } // namespace blink | |
| 25 | |
| 26 #endif | |
| OLD | NEW |