| 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/PointerEventManager.h" | 5 #include "core/input/PointerEventManager.h" |
| 6 | 6 |
| 7 #include "core/dom/DocumentUserGestureToken.h" | 7 #include "core/dom/DocumentUserGestureToken.h" |
| 8 #include "core/dom/ElementTraversal.h" | 8 #include "core/dom/ElementTraversal.h" |
| 9 #include "core/dom/shadow/FlatTreeTraversal.h" | 9 #include "core/dom/shadow/FlatTreeTraversal.h" |
| 10 #include "core/events/MouseEvent.h" | 10 #include "core/events/MouseEvent.h" |
| 11 #include "core/frame/FrameView.h" | 11 #include "core/frame/FrameView.h" |
| 12 #include "core/frame/UseCounter.h" | 12 #include "core/frame/UseCounter.h" |
| 13 #include "core/html/HTMLCanvasElement.h" | 13 #include "core/html/HTMLCanvasElement.h" |
| 14 #include "core/input/EventHandler.h" | 14 #include "core/input/EventHandler.h" |
| 15 #include "core/input/EventHandlingUtil.h" | 15 #include "core/input/EventHandlingUtil.h" |
| 16 #include "core/input/MouseEventManager.h" | 16 #include "core/input/MouseEventManager.h" |
| 17 #include "core/input/TouchActionUtil.h" | 17 #include "core/input/TouchActionUtil.h" |
| 18 #include "core/layout/HitTestCanvasResult.h" | 18 #include "core/layout/HitTestCanvasResult.h" |
| 19 #include "core/page/ChromeClient.h" | 19 #include "core/page/ChromeClient.h" |
| 20 #include "core/page/Page.h" | 20 #include "core/page/Page.h" |
| 21 #include "platform/wtf/AutoReset.h" |
| 21 #include "public/platform/WebTouchEvent.h" | 22 #include "public/platform/WebTouchEvent.h" |
| 22 #include "wtf/AutoReset.h" | |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 size_t ToPointerTypeIndex(WebPointerProperties::PointerType t) { | 28 size_t ToPointerTypeIndex(WebPointerProperties::PointerType t) { |
| 29 return static_cast<size_t>(t); | 29 return static_cast<size_t>(t); |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool IsInDocument(EventTarget* n) { | 32 bool IsInDocument(EventTarget* n) { |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 if (first_id > unique_touch_event_id) | 711 if (first_id > unique_touch_event_id) |
| 712 return false; | 712 return false; |
| 713 touch_ids_for_canceled_pointerdowns_.TakeFirst(); | 713 touch_ids_for_canceled_pointerdowns_.TakeFirst(); |
| 714 if (first_id == unique_touch_event_id) | 714 if (first_id == unique_touch_event_id) |
| 715 return true; | 715 return true; |
| 716 } | 716 } |
| 717 return false; | 717 return false; |
| 718 } | 718 } |
| 719 | 719 |
| 720 } // namespace blink | 720 } // namespace blink |
| OLD | NEW |