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

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

Issue 1976603006: Set view property of pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 86c15ccd53d65875e6711b35599841bf512a37b0..56a5a16f79342bf935c2524fdfc458e7061021ff 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -152,7 +152,8 @@ PointerEvent* PointerEventFactory::create(
PointerEvent* PointerEventFactory::create(const AtomicString& type,
const PlatformTouchPoint& touchPoint, PlatformEvent::Modifiers modifiers,
const FloatSize& pointRadius,
- const FloatPoint& clientPoint)
+ const FloatPoint& clientPoint,
+ DOMWindow* view)
{
const PlatformTouchPoint::TouchState pointState = touchPoint.state();
@@ -181,6 +182,7 @@ PointerEvent* PointerEventFactory::create(const AtomicString& type,
pointerEventInit.setButton(pointerPressedOrReleased ? LeftButton: NoButton);
pointerEventInit.setPressure(getPointerEventPressure(
touchPoint.force(), pointerEventInit.buttons()));
+ pointerEventInit.setView(view);
UIEventWithKeyState::setFromPlatformModifiers(pointerEventInit, modifiers);
@@ -224,7 +226,7 @@ PointerEvent* PointerEventFactory::createPointerCaptureEvent(
return PointerEvent::create(type, pointerEventInit);
}
-PointerEvent* PointerEventFactory::createPointerTransitionEvent(
+PointerEvent* PointerEventFactory::createPointerBoundaryEvent(
PointerEvent* pointerEvent,
const AtomicString& type,
EventTarget* relatedTarget)
@@ -250,6 +252,7 @@ PointerEvent* PointerEventFactory::createPointerTransitionEvent(
pointerEventInit.setButton(pointerEvent->button());
pointerEventInit.setButtons(pointerEvent->buttons());
pointerEventInit.setPressure(pointerEvent->pressure());
+ pointerEventInit.setView(pointerEvent->view());
setBubblesAndCancelable(pointerEventInit, type);

Powered by Google App Engine
This is Rietveld 408576698