| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TouchEventManager_h | 5 #ifndef TouchEventManager_h |
| 6 #define TouchEventManager_h | 6 #define TouchEventManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/PointerEventFactory.h" | 9 #include "core/events/PointerEventFactory.h" |
| 10 #include "public/platform/WebInputEventResult.h" | 10 #include "public/platform/WebInputEventResult.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 PlatformTouchPoint point; | 36 PlatformTouchPoint point; |
| 37 Member<Node> touchNode; | 37 Member<Node> touchNode; |
| 38 Member<LocalFrame> targetFrame; | 38 Member<LocalFrame> targetFrame; |
| 39 FloatPoint contentPoint; | 39 FloatPoint contentPoint; |
| 40 FloatSize adjustedRadius; | 40 FloatSize adjustedRadius; |
| 41 bool knownTarget; | 41 bool knownTarget; |
| 42 String region; | 42 String region; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 explicit TouchEventManager(LocalFrame&); | 45 explicit TouchEventManager(LocalFrame*); |
| 46 DECLARE_TRACE(); | 46 DECLARE_TRACE(); |
| 47 | 47 |
| 48 // Does the hit-testing again if the original hit test result was not inside | 48 // Does the hit-testing again if the original hit test result was not inside |
| 49 // capturing frame for touch events. Returns true if touch events could be | 49 // capturing frame for touch events. Returns true if touch events could be |
| 50 // dispatched and otherwise returns false. | 50 // dispatched and otherwise returns false. |
| 51 bool reHitTestTouchPointsIfNeeded(const PlatformTouchEvent&, | 51 bool reHitTestTouchPointsIfNeeded(const PlatformTouchEvent&, |
| 52 HeapVector<TouchInfo>&); | 52 HeapVector<TouchInfo>&); |
| 53 | 53 |
| 54 // The TouchInfo array is reference just to prevent the copy. However, it | 54 // The TouchInfo array is reference just to prevent the copy. However, it |
| 55 // cannot be const as this function might change some of the properties in | 55 // cannot be const as this function might change some of the properties in |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // The current touch action, computed on each touch start and is | 100 // The current touch action, computed on each touch start and is |
| 101 // a union of all touches. Reset when all touches are released. | 101 // a union of all touches. Reset when all touches are released. |
| 102 TouchAction m_currentTouchAction; | 102 TouchAction m_currentTouchAction; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); | 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); |
| 108 | 108 |
| 109 #endif // TouchEventManager_h | 109 #endif // TouchEventManager_h |
| OLD | NEW |