| 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" | |
| 6 #include "sky/engine/core/frame/NewEventHandler.h" | 5 #include "sky/engine/core/frame/NewEventHandler.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/dom/Document.h" | 7 #include "sky/engine/core/dom/Document.h" |
| 9 #include "sky/engine/core/dom/NodeRenderingTraversal.h" | 8 #include "sky/engine/core/dom/NodeRenderingTraversal.h" |
| 10 #include "sky/engine/core/editing/Editor.h" | 9 #include "sky/engine/core/editing/Editor.h" |
| 11 #include "sky/engine/core/editing/FrameSelection.h" | 10 #include "sky/engine/core/editing/FrameSelection.h" |
| 12 #include "sky/engine/core/editing/htmlediting.h" | 11 #include "sky/engine/core/editing/htmlediting.h" |
| 13 #include "sky/engine/core/events/GestureEvent.h" | 12 #include "sky/engine/core/events/GestureEvent.h" |
| 14 #include "sky/engine/core/events/KeyboardEvent.h" | 13 #include "sky/engine/core/events/KeyboardEvent.h" |
| 15 #include "sky/engine/core/events/PointerEvent.h" | 14 #include "sky/engine/core/events/PointerEvent.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 auto it = m_stateForPointer.find(event.pointer); | 243 auto it = m_stateForPointer.find(event.pointer); |
| 245 if (it == m_stateForPointer.end()) | 244 if (it == m_stateForPointer.end()) |
| 246 return false; | 245 return false; |
| 247 PointerState stateCopy = it->second; | 246 PointerState stateCopy = it->second; |
| 248 m_stateForPointer.erase(it); | 247 m_stateForPointer.erase(it); |
| 249 ASSERT(stateCopy.target); | 248 ASSERT(stateCopy.target); |
| 250 return dispatchPointerEvent(stateCopy, event); | 249 return dispatchPointerEvent(stateCopy, event); |
| 251 } | 250 } |
| 252 | 251 |
| 253 } | 252 } |
| OLD | NEW |