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

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

Issue 12541020: Consolidating platform code into dart:html_common (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 7223959f79eacdcf37f0e4760d92cff8fb190de6..26c7939522f00a4779864158dc316522e415ac07 100644
--- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
+++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
@@ -31,14 +31,14 @@ $!MEMBERS
static bool get supported {
$if DART2JS
if (JS('bool', '"ontouchstart" in window')) {
- return Event._isTypeSupported('TouchEvent');
+ return Device.isEventTypeSupported('TouchEvent');
}
return false;
$else
// Bug #8186 add equivalent 'ontouchstart' check for Dartium.
// Basically, this is a fairly common check and it'd be great if it did not
// throw exceptions.
- return Event._isTypeSupported('TouchEvent');
+ return Device.isEventTypeSupported('TouchEvent');
$endif
}
}

Powered by Google App Engine
This is Rietveld 408576698