Index: Source/core/dom/TouchList.h |
diff --git a/Source/core/dom/TouchList.h b/Source/core/dom/TouchList.h |
index 74a712cd0a2fa6af8c08458909d6a268c6a19d15..6d5f2bf2c9ce172f90196770ffe262061eb0a618 100644 |
--- a/Source/core/dom/TouchList.h |
+++ b/Source/core/dom/TouchList.h |
@@ -40,6 +40,11 @@ public: |
return adoptRef(new TouchList); |
} |
+ static PassRefPtr<TouchList> create(Vector<RefPtr<Touch> >& touches) |
+ { |
+ return adoptRef(new TouchList(touches)); |
+ } |
+ |
unsigned length() const { return m_values.size(); } |
Touch* item(unsigned); |
@@ -53,6 +58,12 @@ private: |
ScriptWrappable::init(this); |
} |
+ TouchList(Vector<RefPtr<Touch> >& touches) |
+ { |
+ m_values.swap(touches); |
+ ScriptWrappable::init(this); |
+ } |
+ |
Vector<RefPtr<Touch> > m_values; |
}; |