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

Unified Diff: tools/dom/templates/html/impl/impl_TouchEvent.darttemplate

Issue 12025027: Cleaning up event constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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: tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
new file mode 100644
index 0000000000000000000000000000000000000000..ea0bef98c19d041c140b3ea30e98b681f5f9a254
--- /dev/null
+++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
@@ -0,0 +1,24 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+part of html;
+
+$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+ factory $CLASSNAME(TouchList touches, TouchList targetTouches,
+ TouchList changedTouches, String type,
+ {Window view, int screenX: 0, int screenY: 0, int clientX: 0,
Emily Fortuna 2013/01/23 19:33:44 tests of at least constructors for these new class
+ int clientY: 0, bool ctrlKey: false, bool altKey: false,
+ bool shiftKey: false, bool metaKey: false}) {
+ if (view == null) {
+ view = window;
+ }
+ var e = document.$dom_createEvent("TouchEvent");
+ e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view,
+ screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
+ return e;
+ }
+$!MEMBERS
+}
« no previous file with comments | « tools/dom/templates/html/impl/impl_TextEvent.darttemplate ('k') | tools/dom/templates/html/impl/impl_UIEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698