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/dom/TouchList.h" | |
11 #include "sky/engine/core/editing/Editor.h" | 10 #include "sky/engine/core/editing/Editor.h" |
12 #include "sky/engine/core/editing/FrameSelection.h" | 11 #include "sky/engine/core/editing/FrameSelection.h" |
13 #include "sky/engine/core/editing/htmlediting.h" | 12 #include "sky/engine/core/editing/htmlediting.h" |
14 #include "sky/engine/core/events/PointerEvent.h" | 13 #include "sky/engine/core/events/PointerEvent.h" |
15 #include "sky/engine/core/frame/LocalFrame.h" | 14 #include "sky/engine/core/frame/LocalFrame.h" |
16 #include "sky/engine/core/frame/FrameView.h" | 15 #include "sky/engine/core/frame/FrameView.h" |
17 #include "sky/engine/core/page/EventWithHitTestResults.h" | 16 #include "sky/engine/core/page/EventWithHitTestResults.h" |
18 #include "sky/engine/core/rendering/RenderObject.h" | 17 #include "sky/engine/core/rendering/RenderObject.h" |
19 #include "sky/engine/core/rendering/RenderView.h" | 18 #include "sky/engine/core/rendering/RenderView.h" |
20 #include "sky/engine/platform/geometry/FloatPoint.h" | 19 #include "sky/engine/platform/geometry/FloatPoint.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return target && dispatchPointerEvent(*target.get(), event); | 143 return target && dispatchPointerEvent(*target.get(), event); |
145 } | 144 } |
146 | 145 |
147 bool NewEventHandler::handlePointerCancelEvent(const WebPointerEvent& event) | 146 bool NewEventHandler::handlePointerCancelEvent(const WebPointerEvent& event) |
148 { | 147 { |
149 RefPtr<Node> target = m_targetForPointer[event.pointer]; | 148 RefPtr<Node> target = m_targetForPointer[event.pointer]; |
150 return target && dispatchPointerEvent(*target, event); | 149 return target && dispatchPointerEvent(*target, event); |
151 } | 150 } |
152 | 151 |
153 } | 152 } |
OLD | NEW |