Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Unified Diff: Source/core/events/PointerEvent.h

Issue 1144313003: Added PointerEvent firing on touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed primary pointer id on reuse, for each type of Pointers. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/events/PointerEvent.h
diff --git a/Source/core/events/PointerEvent.h b/Source/core/events/PointerEvent.h
index 2bb6b8f3dcbb78bae58baf7212e3529eecdcff32..187a4904158f6ebc16377309b023ae8945b16812 100644
--- a/Source/core/events/PointerEvent.h
+++ b/Source/core/events/PointerEvent.h
@@ -33,6 +33,7 @@ public:
const String& pointerType() const { return m_pointerType; }
bool isPrimary() const { return m_isPrimary; }
+ virtual bool isMouseEvent() const override;
virtual bool isPointerEvent() const override;
DECLARE_VIRTUAL_TRACE();
@@ -51,6 +52,17 @@ private:
bool m_isPrimary;
};
+
+class PointerEventDispatchMediator final : public EventDispatchMediator {
+public:
+ static PassRefPtrWillBeRawPtr<PointerEventDispatchMediator> create(PassRefPtrWillBeRawPtr<PointerEvent>);
+
+private:
+ explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>);
+ PointerEvent& event() const;
+ virtual bool dispatchEvent(EventDispatcher&) const override;
+};
+
DEFINE_EVENT_TYPE_CASTS(PointerEvent);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698