Index: Source/core/events/PointerEvent.cpp |
diff --git a/Source/core/events/PointerEvent.cpp b/Source/core/events/PointerEvent.cpp |
index 3cfe5e0c6645a3ab36520117c1dcba83b753d19e..ae67e16d76e290037b36a783314cb32f32abd5c0 100644 |
--- a/Source/core/events/PointerEvent.cpp |
+++ b/Source/core/events/PointerEvent.cpp |
@@ -3,8 +3,11 @@ |
// found in the LICENSE file. |
#include "config.h" |
+ |
#include "core/events/PointerEvent.h" |
+#include "core/events/EventDispatcher.h" |
+ |
namespace blink { |
PointerEvent::PointerEvent() |
@@ -46,6 +49,11 @@ PointerEvent::PointerEvent(const AtomicString& type, const PointerEventInit& ini |
m_isPrimary = initializer.isPrimary(); |
} |
+bool PointerEvent::isMouseEvent() const |
+{ |
+ return false; |
+} |
+ |
bool PointerEvent::isPointerEvent() const |
{ |
return true; |
@@ -56,4 +64,24 @@ DEFINE_TRACE(PointerEvent) |
MouseEvent::trace(visitor); |
} |
+PassRefPtrWillBeRawPtr<PointerEventDispatchMediator> PointerEventDispatchMediator::create(PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent) |
+{ |
+ return adoptRefWillBeNoop(new PointerEventDispatchMediator(pointerEvent)); |
+} |
+ |
+PointerEventDispatchMediator::PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent) |
+ : EventDispatchMediator(pointerEvent) |
+{ |
+} |
+ |
+PointerEvent& PointerEventDispatchMediator::event() const |
+{ |
+ return toPointerEvent(EventDispatchMediator::event()); |
+} |
+ |
+bool PointerEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const |
+{ |
+ return dispatcher.dispatch(); |
Rick Byers
2015/05/27 23:58:07
I think you need at least the logic from MouseEven
mustaq
2015/06/09 15:31:27
Done.
|
+} |
+ |
} // namespace blink |