| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 { | 379 { |
| 380 m_inCanceledStateForPointerTypeTouch = false; | 380 m_inCanceledStateForPointerTypeTouch = false; |
| 381 } | 381 } |
| 382 | 382 |
| 383 WebInputEventResult PointerEventManager::handleTouchEvents( | 383 WebInputEventResult PointerEventManager::handleTouchEvents( |
| 384 const PlatformTouchEvent& event) | 384 const PlatformTouchEvent& event) |
| 385 { | 385 { |
| 386 | 386 |
| 387 if (event.type() == PlatformEvent::TouchScrollStarted) { | 387 if (event.type() == PlatformEvent::TouchScrollStarted) { |
| 388 blockTouchPointers(); | 388 blockTouchPointers(); |
| 389 m_touchEventManager.setTouchScrollStarted(); |
| 389 return WebInputEventResult::HandledSystem; | 390 return WebInputEventResult::HandledSystem; |
| 390 } | 391 } |
| 391 | 392 |
| 392 bool newTouchSequence = true; | 393 bool newTouchSequence = true; |
| 393 for (const auto &touchPoint : event.touchPoints()) { | 394 for (const auto &touchPoint : event.touchPoints()) { |
| 394 if (touchPoint.state() != PlatformTouchPoint::TouchPressed) { | 395 if (touchPoint.state() != PlatformTouchPoint::TouchPressed) { |
| 395 newTouchSequence = false; | 396 newTouchSequence = false; |
| 396 break; | 397 break; |
| 397 } | 398 } |
| 398 } | 399 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 { | 778 { |
| 778 visitor->trace(m_frame); | 779 visitor->trace(m_frame); |
| 779 visitor->trace(m_nodeUnderPointer); | 780 visitor->trace(m_nodeUnderPointer); |
| 780 visitor->trace(m_pointerCaptureTarget); | 781 visitor->trace(m_pointerCaptureTarget); |
| 781 visitor->trace(m_pendingPointerCaptureTarget); | 782 visitor->trace(m_pendingPointerCaptureTarget); |
| 782 visitor->trace(m_touchEventManager); | 783 visitor->trace(m_touchEventManager); |
| 783 } | 784 } |
| 784 | 785 |
| 785 | 786 |
| 786 } // namespace blink | 787 } // namespace blink |
| OLD | NEW |