OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/input/PointerEventManager.h" | 5 #include "core/input/PointerEventManager.h" |
6 | 6 |
7 #include "core/dom/ElementTraversal.h" | 7 #include "core/dom/ElementTraversal.h" |
8 #include "core/dom/shadow/FlatTreeTraversal.h" | 8 #include "core/dom/shadow/FlatTreeTraversal.h" |
9 #include "core/events/MouseEvent.h" | 9 #include "core/events/MouseEvent.h" |
10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 518 |
519 WebInputEventResult PointerEventManager::sendMousePointerEvent( | 519 WebInputEventResult PointerEventManager::sendMousePointerEvent( |
520 Node* target, const AtomicString& mouseEventType, | 520 Node* target, const AtomicString& mouseEventType, |
521 int clickCount, const PlatformMouseEvent& mouseEvent, | 521 int clickCount, const PlatformMouseEvent& mouseEvent, |
522 Node* lastNodeUnderMouse, | 522 Node* lastNodeUnderMouse, |
523 Node** newNodeUnderMouse) | 523 Node** newNodeUnderMouse) |
524 { | 524 { |
525 PointerEvent* pointerEvent = | 525 PointerEvent* pointerEvent = |
526 m_pointerEventFactory.create(mouseEventType, mouseEvent, | 526 m_pointerEventFactory.create(mouseEventType, mouseEvent, |
527 m_frame->document()->domWindow()); | 527 m_frame->document()->domWindow()); |
| 528 LOG(ERROR) << "sendMousePointerEvent. Pointer: " << pointerEvent->pointerTyp
e(); |
528 | 529 |
529 // This is for when the mouse is released outside of the page. | 530 // This is for when the mouse is released outside of the page. |
530 if (pointerEvent->type() == EventTypeNames::pointermove | 531 if (pointerEvent->type() == EventTypeNames::pointermove |
531 && !pointerEvent->buttons()) { | 532 && !pointerEvent->buttons()) { |
532 | 533 |
533 releasePointerCapture(pointerEvent->pointerId()); | 534 releasePointerCapture(pointerEvent->pointerId()); |
534 // Send got/lostpointercapture rightaway if necessary. | 535 // Send got/lostpointercapture rightaway if necessary. |
535 processPendingPointerCapture(pointerEvent); | 536 processPendingPointerCapture(pointerEvent); |
536 | 537 |
537 if (pointerEvent->isPrimary()) { | 538 if (pointerEvent->isPrimary()) { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 { | 811 { |
811 visitor->trace(m_frame); | 812 visitor->trace(m_frame); |
812 visitor->trace(m_nodeUnderPointer); | 813 visitor->trace(m_nodeUnderPointer); |
813 visitor->trace(m_pointerCaptureTarget); | 814 visitor->trace(m_pointerCaptureTarget); |
814 visitor->trace(m_pendingPointerCaptureTarget); | 815 visitor->trace(m_pendingPointerCaptureTarget); |
815 visitor->trace(m_touchEventManager); | 816 visitor->trace(m_touchEventManager); |
816 } | 817 } |
817 | 818 |
818 | 819 |
819 } // namespace blink | 820 } // namespace blink |
OLD | NEW |