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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.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
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e764b369cac07d3ee685f6307973e691634fc47..17c18e0ee49018583e4c968960b95f8087e58610 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -214,7 +214,7 @@ void PointerEventManager::sendBoundaryEvents(
// Dispatch pointerout/mouseout events
if (isInDocument(exitedTarget)) {
if (!sendMouseEvent) {
- dispatchPointerEvent(exitedTarget, m_pointerEventFactory.createPointerTransitionEvent(
+ dispatchPointerEvent(exitedTarget, m_pointerEventFactory.createPointerBoundaryEvent(
pointerEvent, EventTypeNames::pointerout, enteredTarget));
} else {
dispatchMouseEvent(exitedTarget,
@@ -263,7 +263,7 @@ void PointerEventManager::sendBoundaryEvents(
for (size_t j = 0; j < exitedAncestorsCommonParentIndex; j++) {
if (!sendMouseEvent) {
dispatchPointerEvent(exitedAncestors[j].get(),
- m_pointerEventFactory.createPointerTransitionEvent(
+ m_pointerEventFactory.createPointerBoundaryEvent(
pointerEvent, EventTypeNames::pointerleave, enteredTarget),
!exitedNodeHasCapturingAncestor);
} else {
@@ -277,7 +277,7 @@ void PointerEventManager::sendBoundaryEvents(
// Dispatch pointerover/mouseover.
if (isInDocument(enteredTarget)) {
if (!sendMouseEvent) {
- dispatchPointerEvent(enteredTarget, m_pointerEventFactory.createPointerTransitionEvent(
+ dispatchPointerEvent(enteredTarget, m_pointerEventFactory.createPointerBoundaryEvent(
pointerEvent, EventTypeNames::pointerover, exitedTarget));
} else {
dispatchMouseEvent(enteredTarget,
@@ -299,7 +299,7 @@ void PointerEventManager::sendBoundaryEvents(
for (size_t i = enteredAncestorsCommonParentIndex; i > 0; i--) {
if (!sendMouseEvent) {
dispatchPointerEvent(enteredAncestors[i-1].get(),
- m_pointerEventFactory.createPointerTransitionEvent(
+ m_pointerEventFactory.createPointerBoundaryEvent(
pointerEvent, EventTypeNames::pointerenter, exitedTarget),
!enteredNodeHasCapturingAncestor);
} else {
@@ -431,7 +431,9 @@ void PointerEventManager::dispatchTouchPointerEvents(
pointerEventNameForTouchPointState(touchPoint.state()),
touchPoint, event.getModifiers(),
touchInfo.adjustedRadius,
- framePoint);
+ framePoint,
+ touchInfo.touchNode ?
+ touchInfo.touchNode->document().domWindow() : nullptr);
// Consume the touch point if its pointer event is anything but NotHandled
// (e.g. preventDefault is called in the listener for the pointer event).
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698