Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: third_party/WebKit/Source/core/input/TouchEventManager.h

Issue 1971473002: Move touch hit testing to PointerEventManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/UserGestureIndicator.h" 10 #include "platform/UserGestureIndicator.h"
(...skipping 22 matching lines...) Expand all
33 visitor->trace(touchNode); 33 visitor->trace(touchNode);
34 visitor->trace(targetFrame); 34 visitor->trace(targetFrame);
35 } 35 }
36 36
37 PlatformTouchPoint point; 37 PlatformTouchPoint point;
38 Member<Node> touchNode; 38 Member<Node> touchNode;
39 Member<LocalFrame> targetFrame; 39 Member<LocalFrame> targetFrame;
40 FloatPoint adjustedPagePoint; 40 FloatPoint adjustedPagePoint;
41 FloatSize adjustedRadius; 41 FloatSize adjustedRadius;
42 bool knownTarget; 42 bool knownTarget;
43 bool consumed;
mustaq 2016/05/11 14:30:55 I don't think we can afford to lose this until crb
Navid Zolghadr 2016/05/11 16:43:42 Let's discuss this offline in more details. But I
44 String region; 43 String region;
45 }; 44 };
46 45
47 explicit TouchEventManager(LocalFrame*); 46 explicit TouchEventManager(LocalFrame*);
48 ~TouchEventManager(); 47 ~TouchEventManager();
49 DECLARE_TRACE(); 48 DECLARE_TRACE();
50 49
51 // Returns true if it succesfully generates touchInfos. 50 // Does the hit-testing again if the original hit test result was not inside
52 bool generateTouchInfosAfterHittest( 51 // capturing frame for touch events.
52 bool reHitTestTouchPointsIfNeeded(
53 const PlatformTouchEvent&, 53 const PlatformTouchEvent&,
54 HeapVector<TouchInfo>&); 54 HeapVector<TouchInfo>&);
55 55
56 WebInputEventResult handleTouchEvent( 56 WebInputEventResult handleTouchEvent(
57 const PlatformTouchEvent&, 57 const PlatformTouchEvent&,
58 const HeapVector<TouchInfo>&); 58 HeapVector<TouchInfo>&);
59 59
60 // Resets the internal state of this object. 60 // Resets the internal state of this object.
61 void clear(); 61 void clear();
62 62
63 // Returns whether there is any touch on the screen. 63 // Returns whether there is any touch on the screen.
64 bool isAnyTouchActive() const; 64 bool isAnyTouchActive() const;
65 65
66 private: 66 private:
67 67
68 void updateTargetAndRegionMapsForTouchStarts(HeapVector<TouchInfo>&); 68 void updateTargetAndRegionMapsForTouchStarts(HeapVector<TouchInfo>&);
(...skipping 24 matching lines...) Expand all
93 // True if waiting on first touch move after a touch start. 93 // True if waiting on first touch move after a touch start.
94 bool m_waitingForFirstTouchMove; 94 bool m_waitingForFirstTouchMove;
95 95
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); 100 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo);
101 101
102 #endif // TouchEventManager_h 102 #endif // TouchEventManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698