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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2807433003: No pointer captured when the pointer lock is applied (Closed)
Patch Set: Change the tests and move code to WebFrameWidgetBase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 745d0afcbeb6244f0778f1b4fea144048135eac1..1f56eeb4dcec88bc2a666af0e384b01cb7d9c022 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -608,6 +608,15 @@ void PointerEventManager::ProcessPendingPointerCapture(
}
}
+void PointerEventManager::ProcessPendingPointerCapture(
mustaq 2017/05/26 14:56:19 The existing method with the same name is wrapped
lanwei 2017/05/29 18:30:07 Done.
+ const WebMouseEvent& mouse_event,
+ const Vector<WebMouseEvent>& coalesced_events) {
+ PointerEvent* pointer_event = pointer_event_factory_.Create(
+ EventTypeNames::mousemove, mouse_event, coalesced_events,
+ frame_->GetDocument()->domWindow());
+ ProcessPendingPointerCapture(pointer_event);
+}
+
void PointerEventManager::RemoveTargetFromPointerCapturingMapping(
PointerCapturingMap& map,
const EventTarget* target) {
@@ -667,6 +676,10 @@ void PointerEventManager::ReleasePointerCapture(int pointer_id,
ReleasePointerCapture(pointer_id);
}
+void PointerEventManager::ReleaseMousePointerCapture() {
+ ReleasePointerCapture(PointerEventFactory::kMouseId);
+}
+
bool PointerEventManager::HasPointerCapture(int pointer_id,
const EventTarget* target) const {
return pending_pointer_capture_target_.at(pointer_id) == target;

Powered by Google App Engine
This is Rietveld 408576698