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

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

Issue 2521993003: Send boundary events before gotpointercapture (Closed)
Patch Set: Fix the tests Created 4 years 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 bool isActive(const int) const; 70 bool isActive(const int) const;
71 71
72 // Returns whether there is any touch on the screen. 72 // Returns whether there is any touch on the screen.
73 bool isAnyTouchActive() const; 73 bool isAnyTouchActive() const;
74 74
75 // Returns whether pointerId is for an active touch pointerevent and whether 75 // Returns whether pointerId is for an active touch pointerevent and whether
76 // the last event was sent to the given frame. 76 // the last event was sent to the given frame.
77 bool isTouchPointerIdActiveOnFrame(int, LocalFrame*) const; 77 bool isTouchPointerIdActiveOnFrame(int, LocalFrame*) const;
78 78
79 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in
80 // EventHandler is done.
81 EventTarget* getMouseCapturingNode();
82
83 // Returns true if the primary pointerdown corresponding to the given 79 // Returns true if the primary pointerdown corresponding to the given
84 // |uniqueTouchEventId| was canceled. Also drops stale ids from 80 // |uniqueTouchEventId| was canceled. Also drops stale ids from
85 // |m_touchIdsForCanceledPointerdowns|. 81 // |m_touchIdsForCanceledPointerdowns|.
86 bool primaryPointerdownCanceled(uint32_t uniqueTouchEventId); 82 bool primaryPointerdownCanceled(uint32_t uniqueTouchEventId);
87 83
88 private: 84 private:
89 typedef HeapHashMap<int, 85 typedef HeapHashMap<int,
90 Member<EventTarget>, 86 Member<EventTarget>,
91 WTF::IntHash<int>, 87 WTF::IntHash<int>,
92 WTF::UnsignedWithZeroKeyHashTraits<int>> 88 WTF::UnsignedWithZeroKeyHashTraits<int>>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 PointerCapturingMap m_pendingPointerCaptureTarget; 219 PointerCapturingMap m_pendingPointerCaptureTarget;
224 220
225 PointerEventFactory m_pointerEventFactory; 221 PointerEventFactory m_pointerEventFactory;
226 Member<TouchEventManager> m_touchEventManager; 222 Member<TouchEventManager> m_touchEventManager;
227 Member<MouseEventManager> m_mouseEventManager; 223 Member<MouseEventManager> m_mouseEventManager;
228 }; 224 };
229 225
230 } // namespace blink 226 } // namespace blink
231 227
232 #endif // PointerEventManager_h 228 #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