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

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

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.idl
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.idl b/third_party/WebKit/Source/core/events/TouchEvent.idl
index 00a290a05071cd6edef686535fec4f73948b6ba5..f49113f67ae2904e980a2272b531f39ec0e89125 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.idl
+++ b/third_party/WebKit/Source/core/events/TouchEvent.idl
@@ -25,9 +25,9 @@
// https://w3c.github.io/touch-events/#touchevent-interface
-// TODO(rbyers): TouchEvent should have a constructor. http://crbug.com/508675
-
-interface TouchEvent : UIEvent {
+[
+ Constructor(DOMString type, optional TouchEventInit eventInitDict),
+] interface TouchEvent : UIEvent {
readonly attribute TouchList touches;
readonly attribute TouchList targetTouches;
readonly attribute TouchList changedTouches;
« no previous file with comments | « third_party/WebKit/Source/core/events/TouchEvent.cpp ('k') | third_party/WebKit/Source/core/events/TouchEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698