| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/core/frame/NewEventHandler.h" | 6 #include "sky/engine/core/frame/NewEventHandler.h" |
| 7 | 7 |
| 8 #include "sky/engine/core/dom/Document.h" | 8 #include "sky/engine/core/dom/Document.h" |
| 9 #include "sky/engine/core/dom/NodeRenderingTraversal.h" | 9 #include "sky/engine/core/dom/NodeRenderingTraversal.h" |
| 10 #include "sky/engine/core/editing/Editor.h" | 10 #include "sky/engine/core/editing/Editor.h" |
| 11 #include "sky/engine/core/editing/FrameSelection.h" | 11 #include "sky/engine/core/editing/FrameSelection.h" |
| 12 #include "sky/engine/core/editing/htmlediting.h" | 12 #include "sky/engine/core/editing/htmlediting.h" |
| 13 #include "sky/engine/core/events/GestureEvent.h" | 13 #include "sky/engine/core/events/GestureEvent.h" |
| 14 #include "sky/engine/core/events/KeyboardEvent.h" | 14 #include "sky/engine/core/events/KeyboardEvent.h" |
| 15 #include "sky/engine/core/events/PointerEvent.h" | 15 #include "sky/engine/core/events/PointerEvent.h" |
| 16 #include "sky/engine/core/frame/LocalFrame.h" | 16 #include "sky/engine/core/frame/LocalFrame.h" |
| 17 #include "sky/engine/core/frame/FrameView.h" | 17 #include "sky/engine/core/frame/FrameView.h" |
| 18 #include "sky/engine/core/page/EventWithHitTestResults.h" | |
| 19 #include "sky/engine/core/rendering/RenderObject.h" | 18 #include "sky/engine/core/rendering/RenderObject.h" |
| 20 #include "sky/engine/core/rendering/RenderView.h" | 19 #include "sky/engine/core/rendering/RenderView.h" |
| 21 #include "sky/engine/platform/KeyboardCodes.h" | 20 #include "sky/engine/platform/KeyboardCodes.h" |
| 22 #include "sky/engine/platform/geometry/FloatPoint.h" | 21 #include "sky/engine/platform/geometry/FloatPoint.h" |
| 23 #include "sky/engine/public/platform/WebInputEvent.h" | 22 #include "sky/engine/public/platform/WebInputEvent.h" |
| 24 | 23 |
| 25 namespace blink { | 24 namespace blink { |
| 26 | 25 |
| 27 static VisiblePosition visiblePositionForHitTestResult(const HitTestResult& hitT
estResult) | 26 static VisiblePosition visiblePositionForHitTestResult(const HitTestResult& hitT
estResult) |
| 28 { | 27 { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 return target && dispatchPointerEvent(*target.get(), event); | 203 return target && dispatchPointerEvent(*target.get(), event); |
| 205 } | 204 } |
| 206 | 205 |
| 207 bool NewEventHandler::handlePointerCancelEvent(const WebPointerEvent& event) | 206 bool NewEventHandler::handlePointerCancelEvent(const WebPointerEvent& event) |
| 208 { | 207 { |
| 209 RefPtr<Node> target = m_targetForPointer[event.pointer]; | 208 RefPtr<Node> target = m_targetForPointer[event.pointer]; |
| 210 return target && dispatchPointerEvent(*target, event); | 209 return target && dispatchPointerEvent(*target, event); |
| 211 } | 210 } |
| 212 | 211 |
| 213 } | 212 } |
| OLD | NEW |