| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |