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

Unified Diff: third_party/WebKit/Source/core/events/TouchEvent.cpp

Issue 1415673004: Added web-exposed constructor for Touch and TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed runtime enabled for Touch/TouchInit Created 5 years, 1 month 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: third_party/WebKit/Source/core/events/TouchEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.cpp b/third_party/WebKit/Source/core/events/TouchEvent.cpp
index b3c84dff31e264470f5e034b60cb26abd97fd1f4..b359414c115bf7b2632bba909461988ba8f23b8a 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.cpp
+++ b/third_party/WebKit/Source/core/events/TouchEvent.cpp
@@ -53,6 +53,14 @@ TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches,
setPlatformTimeStamp(timestamp);
}
+TouchEvent::TouchEvent(const AtomicString& type, const TouchEventInit& initializer)
+ : UIEventWithKeyState(type, initializer)
+ , m_touches(TouchList::create(initializer.touches()))
+ , m_targetTouches(TouchList::create(initializer.targetTouches()))
+ , m_changedTouches(TouchList::create(initializer.changedTouches()))
+{
+}
+
TouchEvent::~TouchEvent()
{
}
« no previous file with comments | « third_party/WebKit/Source/core/events/TouchEvent.h ('k') | third_party/WebKit/Source/core/events/TouchEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698