Index: sky/engine/core/events/GestureEvent.h |
diff --git a/sky/engine/core/events/GestureEvent.h b/sky/engine/core/events/GestureEvent.h |
index f67b18936584f21fbdd120967f5e5e2ad7acbe89..e6c46c539c32cb0e32aad966ea53f529083bbe0e 100644 |
--- a/sky/engine/core/events/GestureEvent.h |
+++ b/sky/engine/core/events/GestureEvent.h |
@@ -11,6 +11,7 @@ |
namespace blink { |
struct GestureEventInit : public EventInit { |
+ int primaryPointer = 0; |
double x = 0; |
double y = 0; |
double dx = 0; |
@@ -38,6 +39,7 @@ public: |
~GestureEvent() override; |
const AtomicString& interfaceName() const override; |
+ int primaryPointer() const { return m_primaryPointer; } |
eseidel
2015/03/19 18:00:36
dart 'get' has spoiled me.
|
float x() const { return m_x; } |
float y() const { return m_y; } |
float dx() const { return m_dx; } |
@@ -50,6 +52,7 @@ private: |
explicit GestureEvent(const WebGestureEvent&); |
GestureEvent(const AtomicString& type, const GestureEventInit&); |
+ int m_primaryPointer; |
float m_x; |
float m_y; |
float m_dx; |