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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 2973963003: Release mouse pointer capture when it starts drag (Closed)
Patch Set: Remove is_cancel from parameters Created 3 years, 5 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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 8fd5795fbc720994c6ac31421adbde80c6746a21..233c45501157f4b06027a8ddb26c9efc54d0f12e 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -368,6 +368,16 @@ PointerEvent* PointerEventFactory::Create(
event_platform_time_stamp);
}
+PointerEvent* PointerEventFactory::CreatePointerCancelEvent(
+ const WebPointerEvent& event) {
+ DCHECK_EQ(event.GetType(), WebInputEvent::Type::kPointerCancel);
+ int pointer_id = GetPointerEventId(event);
+
+ return CreatePointerCancelEvent(
+ pointer_id, event.pointer_type,
+ TimeTicks::FromSeconds(event.TimeStampSeconds()));
+}
+
PointerEvent* PointerEventFactory::CreatePointerCancelEvent(
const int pointer_id,
const WebPointerProperties::PointerType pointer_type,

Powered by Google App Engine
This is Rietveld 408576698