| 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/shadow/FlatTreeTraversal.h" | 7 #include "core/dom/shadow/FlatTreeTraversal.h" |
| 8 #include "core/events/MouseEvent.h" | 8 #include "core/events/MouseEvent.h" |
| 9 #include "core/input/EventHandler.h" | 9 #include "core/input/EventHandler.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 const AtomicString& pointerEventNameForTouchPointState(PlatformTouchPoint::State
state) | 15 const AtomicString& pointerEventNameForTouchPointState(PlatformTouchPoint::Touch
State state) |
| 16 { | 16 { |
| 17 switch (state) { | 17 switch (state) { |
| 18 case PlatformTouchPoint::TouchReleased: | 18 case PlatformTouchPoint::TouchReleased: |
| 19 return EventTypeNames::pointerup; | 19 return EventTypeNames::pointerup; |
| 20 case PlatformTouchPoint::TouchCancelled: | 20 case PlatformTouchPoint::TouchCancelled: |
| 21 return EventTypeNames::pointercancel; | 21 return EventTypeNames::pointercancel; |
| 22 case PlatformTouchPoint::TouchPressed: | 22 case PlatformTouchPoint::TouchPressed: |
| 23 return EventTypeNames::pointerdown; | 23 return EventTypeNames::pointerdown; |
| 24 case PlatformTouchPoint::TouchMoved: | 24 case PlatformTouchPoint::TouchMoved: |
| 25 return EventTypeNames::pointermove; | 25 return EventTypeNames::pointermove; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 337 |
| 338 DEFINE_TRACE(PointerEventManager) | 338 DEFINE_TRACE(PointerEventManager) |
| 339 { | 339 { |
| 340 #if ENABLE(OILPAN) | 340 #if ENABLE(OILPAN) |
| 341 visitor->trace(m_nodeUnderPointer); | 341 visitor->trace(m_nodeUnderPointer); |
| 342 #endif | 342 #endif |
| 343 } | 343 } |
| 344 | 344 |
| 345 | 345 |
| 346 } // namespace blink | 346 } // namespace blink |
| OLD | NEW |