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

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

Issue 141113006: Fixing TouchEvent.supported (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af426b530e356607a58cbd32742a0871d055aa7f..c460c1ba067665932139f2639699ed2bb598e87b 100644
--- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
+++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate
@@ -28,17 +28,5 @@ $!MEMBERS
* Note that touch events are only supported if the user is using a touch
* device.
*/
- static bool get supported {
-$if DART2JS
- if (JS('bool', '"ontouchstart" in window')) {
- 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 Device.isEventTypeSupported('TouchEvent');
-$endif
- }
+ static bool get supported => Device.isEventTypeSupported('TouchEvent');
}
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698