| 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 #ifndef PointerEvent_h | 5 #ifndef PointerEvent_h |
| 6 #define PointerEvent_h | 6 #define PointerEvent_h |
| 7 | 7 |
| 8 #include "core/events/MouseEvent.h" | 8 #include "core/events/MouseEvent.h" |
| 9 #include "core/events/PointerEventInit.h" | 9 #include "core/events/PointerEventInit.h" |
| 10 #include "platform/PlatformTouchPoint.h" | |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 class CORE_EXPORT PointerEvent final : public MouseEvent { | 13 class CORE_EXPORT PointerEvent final : public MouseEvent { |
| 15 DEFINE_WRAPPERTYPEINFO(); | 14 DEFINE_WRAPPERTYPEINFO(); |
| 16 | 15 |
| 17 public: | 16 public: |
| 18 static PointerEvent* create(const AtomicString& type, | 17 static PointerEvent* create(const AtomicString& type, |
| 19 const PointerEventInit& initializer) { | 18 const PointerEventInit& initializer) { |
| 20 return new PointerEvent(type, initializer); | 19 return new PointerEvent(type, initializer); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 explicit PointerEventDispatchMediator(PointerEvent*); | 65 explicit PointerEventDispatchMediator(PointerEvent*); |
| 67 PointerEvent& event() const; | 66 PointerEvent& event() const; |
| 68 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 67 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 DEFINE_EVENT_TYPE_CASTS(PointerEvent); | 70 DEFINE_EVENT_TYPE_CASTS(PointerEvent); |
| 72 | 71 |
| 73 } // namespace blink | 72 } // namespace blink |
| 74 | 73 |
| 75 #endif // PointerEvent_h | 74 #endif // PointerEvent_h |
| OLD | NEW |