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

Side by Side Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2289273002: Eraser tool type plumbing from ui/events to web events and PPAPI. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698