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

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

Issue 1838973003: Send lostpointercapture on touch capturing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 PointerEventManager_h 5 #ifndef PointerEventManager_h
6 #define PointerEventManager_h 6 #define PointerEventManager_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/PointerEvent.h" 9 #include "core/events/PointerEvent.h"
10 #include "core/events/PointerEventFactory.h" 10 #include "core/events/PointerEventFactory.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const PlatformMouseEvent&, 59 const PlatformMouseEvent&,
60 PassRefPtrWillBeRawPtr<AbstractView>, bool isFrameBoundaryTransition); 60 PassRefPtrWillBeRawPtr<AbstractView>, bool isFrameBoundaryTransition);
61 61
62 // Clear all the existing ids. 62 // Clear all the existing ids.
63 void clear(); 63 void clear();
64 64
65 void elementRemoved(EventTarget*); 65 void elementRemoved(EventTarget*);
66 void setPointerCapture(int, EventTarget*); 66 void setPointerCapture(int, EventTarget*);
67 void releasePointerCapture(int, EventTarget*); 67 void releasePointerCapture(int, EventTarget*);
68 bool isActive(const int); 68 bool isActive(const int);
69 WebPointerProperties::PointerType getPointerEventType(const int);
69 70
70 private: 71 private:
71 typedef WillBeHeapHashMap<int, RefPtrWillBeMember<EventTarget>> PointerCaptu ringMap; 72 typedef WillBeHeapHashMap<int, RefPtrWillBeMember<EventTarget>> PointerCaptu ringMap;
72 class EventTargetAttributes { 73 class EventTargetAttributes {
73 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 74 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
74 public: 75 public:
75 DEFINE_INLINE_TRACE() 76 DEFINE_INLINE_TRACE()
76 { 77 {
77 visitor->trace(target); 78 visitor->trace(target);
78 } 79 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; 142 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer;
142 143
143 PointerCapturingMap m_pointerCaptureTarget; 144 PointerCapturingMap m_pointerCaptureTarget;
144 PointerCapturingMap m_pendingPointerCaptureTarget; 145 PointerCapturingMap m_pendingPointerCaptureTarget;
145 PointerEventFactory m_pointerEventFactory; 146 PointerEventFactory m_pointerEventFactory;
146 }; 147 };
147 148
148 } // namespace blink 149 } // namespace blink
149 150
150 #endif // PointerEventManager_h 151 #endif // PointerEventManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/PointerEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698