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 28 matching lines...) Expand all Loading... |
39 // be moved to this class (see crrev.com/112023010). Since that might cause | 39 // be moved to this class (see crrev.com/112023010). Since that might cause |
40 // regression it's better to move that logic in another change. | 40 // regression it's better to move that logic in another change. |
41 double getLastShowPressTimestamp() const; | 41 double getLastShowPressTimestamp() const; |
42 | 42 |
43 private: | 43 private: |
44 WebInputEventResult handleGestureShowPress(); | 44 WebInputEventResult handleGestureShowPress(); |
45 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult
s&); | 45 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult
s&); |
46 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); | 46 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); |
47 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu
lts&); | 47 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu
lts&); |
48 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult
s&); | 48 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult
s&); |
| 49 WebInputEventResult handleGestureTwoFingerTap(const GestureEventWithHitTestR
esults&); |
| 50 |
| 51 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit
TestResults&); |
49 | 52 |
50 FrameHost* frameHost() const; | 53 FrameHost* frameHost() const; |
51 | 54 |
52 // NOTE: If adding a new field to this class please ensure that it is | 55 // NOTE: If adding a new field to this class please ensure that it is |
53 // cleared if needed in |GestureManager::clear()|. | 56 // cleared if needed in |GestureManager::clear()|. |
54 | 57 |
55 const Member<LocalFrame> m_frame; | 58 const Member<LocalFrame> m_frame; |
56 | 59 |
57 ScrollManager* m_scrollManager; | 60 ScrollManager* m_scrollManager; |
58 PointerEventManager* m_pointerEventManager; | 61 PointerEventManager* m_pointerEventManager; |
59 | 62 |
60 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 63 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
61 // triggering |touchstart| event was canceled. This suppresses mouse event | 64 // triggering |touchstart| event was canceled. This suppresses mouse event |
62 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 65 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
63 bool m_suppressMouseEventsFromGestures; | 66 bool m_suppressMouseEventsFromGestures; |
64 | 67 |
65 bool m_longTapShouldInvokeContextMenu; | 68 bool m_longTapShouldInvokeContextMenu; |
66 | 69 |
67 const Member<SelectionController> m_selectionController; | 70 const Member<SelectionController> m_selectionController; |
68 | 71 |
69 double m_lastShowPressTimestamp; | 72 double m_lastShowPressTimestamp; |
70 }; | 73 }; |
71 | 74 |
72 } // namespace blink | 75 } // namespace blink |
73 | 76 |
74 #endif // GestureManager_h | 77 #endif // GestureManager_h |
OLD | NEW |