| 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/dom/DocumentUserGestureToken.h" | 8 #include "core/dom/DocumentUserGestureToken.h" |
| 9 #include "core/editing/SelectionController.h" | 9 #include "core/editing/SelectionController.h" |
| 10 #include "core/events/GestureEvent.h" | 10 #include "core/events/GestureEvent.h" |
| 11 #include "core/frame/FrameHost.h" | 11 #include "core/frame/FrameHost.h" |
| 12 #include "core/frame/FrameView.h" | 12 #include "core/frame/FrameView.h" |
| 13 #include "core/frame/Settings.h" | 13 #include "core/frame/Settings.h" |
| 14 #include "core/frame/VisualViewport.h" | 14 #include "core/frame/VisualViewport.h" |
| 15 #include "core/input/EventHandler.h" | 15 #include "core/input/EventHandler.h" |
| 16 #include "core/input/EventHandlingUtil.h" | 16 #include "core/input/EventHandlingUtil.h" |
| 17 #include "core/page/ChromeClient.h" | 17 #include "core/page/ChromeClient.h" |
| 18 #include "core/page/Page.h" | 18 #include "core/page/Page.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 GestureManager::GestureManager(LocalFrame& frame, | 22 GestureManager::GestureManager(LocalFrame* frame, |
| 23 ScrollManager& scrollManager, | 23 ScrollManager* scrollManager, |
| 24 MouseEventManager& mouseEventManager, | 24 MouseEventManager* mouseEventManager, |
| 25 PointerEventManager& pointerEventManager, | 25 PointerEventManager* pointerEventManager, |
| 26 SelectionController& selectionController) | 26 SelectionController* selectionController) |
| 27 : m_frame(frame), | 27 : m_frame(frame), |
| 28 m_scrollManager(scrollManager), | 28 m_scrollManager(scrollManager), |
| 29 m_mouseEventManager(mouseEventManager), | 29 m_mouseEventManager(mouseEventManager), |
| 30 m_pointerEventManager(pointerEventManager), | 30 m_pointerEventManager(pointerEventManager), |
| 31 m_selectionController(selectionController) { | 31 m_selectionController(selectionController) { |
| 32 clear(); | 32 clear(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void GestureManager::clear() { | 35 void GestureManager::clear() { |
| 36 m_suppressMouseEventsFromGestures = false; | 36 m_suppressMouseEventsFromGestures = false; |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 return nullptr; | 402 return nullptr; |
| 403 | 403 |
| 404 return &m_frame->page()->frameHost(); | 404 return &m_frame->page()->frameHost(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 double GestureManager::getLastShowPressTimestamp() const { | 407 double GestureManager::getLastShowPressTimestamp() const { |
| 408 return m_lastShowPressTimestamp; | 408 return m_lastShowPressTimestamp; |
| 409 } | 409 } |
| 410 | 410 |
| 411 } // namespace blink | 411 } // namespace blink |
| OLD | NEW |