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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 731624bfcf1c7a13ac042921bfa12bee9e1a3daf..3938eeb4de0e5cb30e8b013a4b4548626a76ae37 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1215,6 +1215,10 @@ void EventHandler::ReleasePointerCapture(int pointer_id, EventTarget* target) {
}
}
+void EventHandler::ReleaseMousePointerCapture() {
+ pointer_event_manager_->ReleaseMousePointerCapture();
+}
+
bool EventHandler::HasPointerCapture(int pointer_id,
const EventTarget* target) const {
if (RootFrameTouchPointerActiveInCurrentFrame(pointer_id)) {
@@ -1230,6 +1234,13 @@ bool EventHandler::HasProcessedPointerCapture(int pointer_id,
return pointer_event_manager_->HasProcessedPointerCapture(pointer_id, target);
}
+void EventHandler::ProcessPendingPointerCapture(
mustaq 2017/05/26 14:56:19 Please rename to make the API usage clear, otherwi
lanwei 2017/05/29 18:30:07 Done.
+ const WebMouseEvent& mouse_event,
+ const Vector<WebMouseEvent>& coalesced_events) {
+ pointer_event_manager_->ProcessPendingPointerCapture(mouse_event,
+ coalesced_events);
+}
+
void EventHandler::ElementRemoved(EventTarget* target) {
pointer_event_manager_->ElementRemoved(target);
}

Powered by Google App Engine
This is Rietveld 408576698