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

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

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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
index 35640d5c35c3f65abf89a5d7df4b9b68866f7885..7857dc827c8775f7fe8a16ad46eedf02a8dc22b5 100644
--- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
+++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
@@ -15,11 +15,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
if (view == null) {
view = window;
}
-$if DART2JS
TouchEvent e = document._createEvent("TouchEvent");
-$else
- TouchEvent e = _blink.BlinkTouchEvent.instance.constructorCallback_1_(type);
-$endif
e._initTouchEvent(touches, targetTouches, changedTouches, type, view,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
return e;
@@ -31,9 +27,5 @@ $!MEMBERS
* Note that touch events are only supported if the user is using a touch
* device.
*/
-$if DART2JS
static bool get supported => Device.isEventTypeSupported('TouchEvent');
-$else
- static bool get supported => true;
-$endif
}

Powered by Google App Engine
This is Rietveld 408576698