| 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 "core/input/EventHandlingUtil.h" | 10 #include "core/input/EventHandlingUtil.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Document; | 21 class Document; |
| 22 class WebTouchEvent; | 22 class WebTouchEvent; |
| 23 | 23 |
| 24 // This class takes care of dispatching all touch events and | 24 // This class takes care of dispatching all touch events and |
| 25 // maintaining related states. | 25 // maintaining related states. |
| 26 class CORE_EXPORT TouchEventManager | 26 class CORE_EXPORT TouchEventManager |
| 27 : public GarbageCollectedFinalized<TouchEventManager> { | 27 : public GarbageCollectedFinalized<TouchEventManager> { |
| 28 WTF_MAKE_NONCOPYABLE(TouchEventManager); | 28 WTF_MAKE_NONCOPYABLE(TouchEventManager); |
| 29 | 29 |
| 30 public: | 30 public: |
| 31 | |
| 32 explicit TouchEventManager(LocalFrame&); | 31 explicit TouchEventManager(LocalFrame&); |
| 33 DECLARE_TRACE(); | 32 DECLARE_TRACE(); |
| 34 | 33 |
| 35 // The entries in touch point array of WebTouchEvent (i.e. first parameter) | 34 // The entries in touch point array of WebTouchEvent (i.e. first parameter) |
| 36 // correspond to the entries of the PointerEventTargets (i.e. last parameter). | 35 // correspond to the entries of the PointerEventTargets (i.e. last parameter). |
| 37 WebInputEventResult HandleTouchEvent( | 36 WebInputEventResult HandleTouchEvent( |
| 38 const WebTouchEvent&, | 37 const WebTouchEvent&, |
| 39 const Vector<WebTouchEvent>&, | 38 const Vector<WebTouchEvent>&, |
| 40 const HeapVector<EventHandlingUtil::PointerEventTarget>&); | 39 const HeapVector<EventHandlingUtil::PointerEventTarget>&); |
| 41 | 40 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool suppressing_touchmoves_within_slop_; | 88 bool suppressing_touchmoves_within_slop_; |
| 90 | 89 |
| 91 // The current touch action, computed on each touch start and is | 90 // The current touch action, computed on each touch start and is |
| 92 // a union of all touches. Reset when all touches are released. | 91 // a union of all touches. Reset when all touches are released. |
| 93 TouchAction current_touch_action_; | 92 TouchAction current_touch_action_; |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace blink | 95 } // namespace blink |
| 97 | 96 |
| 98 #endif // TouchEventManager_h | 97 #endif // TouchEventManager_h |
| OLD | NEW |