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

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

Issue 2807433003: No pointer captured when the pointer lock is applied (Closed)
Patch Set: pointer lock 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 3008398da7fec124070ee00ff75e309bcb4053fd..d9cb1cefdbc82eaf46c4ff6d1df43ff0f58e6c7f 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -607,6 +607,15 @@ void PointerEventManager::ProcessPendingPointerCapture(
}
}
+void PointerEventManager::ProcessPendingPointerCapture(
+ 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) {
@@ -666,6 +675,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