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

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

Issue 2147263003: Send got/lostpointercapture immediately if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make PointerEventManager a GC object Created 4 years, 5 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/GestureManager.h" 5 #include "core/input/GestureManager.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/editing/SelectionController.h" 8 #include "core/editing/SelectionController.h"
9 #include "core/events/GestureEvent.h" 9 #include "core/events/GestureEvent.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 25 matching lines...) Expand all
36 { 36 {
37 m_suppressMouseEventsFromGestures = false; 37 m_suppressMouseEventsFromGestures = false;
38 m_longTapShouldInvokeContextMenu = false; 38 m_longTapShouldInvokeContextMenu = false;
39 m_lastShowPressTimestamp = 0; 39 m_lastShowPressTimestamp = 0;
40 } 40 }
41 41
42 DEFINE_TRACE(GestureManager) 42 DEFINE_TRACE(GestureManager)
43 { 43 {
44 visitor->trace(m_frame); 44 visitor->trace(m_frame);
45 visitor->trace(m_selectionController); 45 visitor->trace(m_selectionController);
46 visitor->trace(m_pointerEventManager);
46 } 47 }
47 48
48 HitTestRequest::HitTestRequestType GestureManager::getHitTypeForGestureType(Plat formEvent::EventType type) 49 HitTestRequest::HitTestRequestType GestureManager::getHitTypeForGestureType(Plat formEvent::EventType type)
49 { 50 {
50 HitTestRequest::HitTestRequestType hitType = HitTestRequest::TouchEvent; 51 HitTestRequest::HitTestRequestType hitType = HitTestRequest::TouchEvent;
51 switch (type) { 52 switch (type) {
52 case PlatformEvent::GestureShowPress: 53 case PlatformEvent::GestureShowPress:
53 case PlatformEvent::GestureTapUnconfirmed: 54 case PlatformEvent::GestureTapUnconfirmed:
54 return hitType | HitTestRequest::Active; 55 return hitType | HitTestRequest::Active;
55 case PlatformEvent::GestureTapDownCancel: 56 case PlatformEvent::GestureTapDownCancel:
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 308
308 return &m_frame->page()->frameHost(); 309 return &m_frame->page()->frameHost();
309 } 310 }
310 311
311 double GestureManager::getLastShowPressTimestamp() const 312 double GestureManager::getLastShowPressTimestamp() const
312 { 313 {
313 return m_lastShowPressTimestamp; 314 return m_lastShowPressTimestamp;
314 } 315 }
315 316
316 } // namespace blink 317 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698