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

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

Issue 2027473002: Deprecate use of user gestures during scroll-related touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/TouchEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698