| 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 GestureManager_h | 5 #ifndef GestureManager_h |
| 6 #define GestureManager_h | 6 #define GestureManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "core/layout/HitTestRequest.h" | 10 #include "core/layout/HitTestRequest.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void clear(); | 36 void clear(); |
| 37 | 37 |
| 38 HitTestRequest::HitTestRequestType getHitTypeForGestureType( | 38 HitTestRequest::HitTestRequestType getHitTypeForGestureType( |
| 39 PlatformEvent::EventType); | 39 PlatformEvent::EventType); |
| 40 WebInputEventResult handleGestureEventInFrame( | 40 WebInputEventResult handleGestureEventInFrame( |
| 41 const GestureEventWithHitTestResults&); | 41 const GestureEventWithHitTestResults&); |
| 42 | 42 |
| 43 // TODO(nzolghadr): This can probably be hidden and the related logic | 43 // TODO(nzolghadr): This can probably be hidden and the related logic |
| 44 // be moved to this class (see crrev.com/112023010). Since that might cause | 44 // be moved to this class (see crrev.com/112023010). Since that might cause |
| 45 // regression it's better to move that logic in another change. | 45 // regression it's better to move that logic in another change. |
| 46 double getLastShowPressTimestamp() const; | 46 TimeTicks getLastShowPressTimestamp() const; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 WebInputEventResult handleGestureShowPress(); | 49 WebInputEventResult handleGestureShowPress(); |
| 50 WebInputEventResult handleGestureTapDown( | 50 WebInputEventResult handleGestureTapDown( |
| 51 const GestureEventWithHitTestResults&); | 51 const GestureEventWithHitTestResults&); |
| 52 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); | 52 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); |
| 53 WebInputEventResult handleGestureLongPress( | 53 WebInputEventResult handleGestureLongPress( |
| 54 const GestureEventWithHitTestResults&); | 54 const GestureEventWithHitTestResults&); |
| 55 WebInputEventResult handleGestureLongTap( | 55 WebInputEventResult handleGestureLongTap( |
| 56 const GestureEventWithHitTestResults&); | 56 const GestureEventWithHitTestResults&); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 74 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
| 75 // triggering |touchstart| event was canceled. This suppresses mouse event | 75 // triggering |touchstart| event was canceled. This suppresses mouse event |
| 76 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 76 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
| 77 bool m_suppressMouseEventsFromGestures; | 77 bool m_suppressMouseEventsFromGestures; |
| 78 | 78 |
| 79 bool m_longTapShouldInvokeContextMenu; | 79 bool m_longTapShouldInvokeContextMenu; |
| 80 | 80 |
| 81 const Member<SelectionController> m_selectionController; | 81 const Member<SelectionController> m_selectionController; |
| 82 | 82 |
| 83 double m_lastShowPressTimestamp; | 83 TimeTicks m_lastShowPressTimestamp; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // GestureManager_h | 88 #endif // GestureManager_h |
| OLD | NEW |