Index: third_party/WebKit/Source/core/dom/TouchList.h |
diff --git a/third_party/WebKit/Source/core/dom/TouchList.h b/third_party/WebKit/Source/core/dom/TouchList.h |
index e8b68484e647aaa840458d266678d793937bc6d7..6f471a28fc731a3b7150d571cbf336386140f277 100644 |
--- a/third_party/WebKit/Source/core/dom/TouchList.h |
+++ b/third_party/WebKit/Source/core/dom/TouchList.h |
@@ -43,6 +43,13 @@ public: |
return adoptRefWillBeNoop(new TouchList); |
} |
+ static PassRefPtrWillBeRawPtr<TouchList> create(const WillBeHeapVector<RefPtrWillBeMember<Touch>>& touches) |
+ { |
+ RefPtrWillBeRawPtr<TouchList> list = adoptRefWillBeNoop(new TouchList); |
+ list->m_values.appendVector(touches); |
+ return list.release(); |
+ } |
+ |
static PassRefPtrWillBeRawPtr<TouchList> adopt(WillBeHeapVector<RefPtrWillBeMember<Touch>>& touches) |
{ |
return adoptRefWillBeNoop(new TouchList(touches)); |