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

Unified Diff: lib/html/src/Device.dart

Issue 10969073: Fixing up WheelEvent to follow W3C standards and work on all platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback Created 8 years, 3 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 | « lib/html/scripts/systemnative.py ('k') | lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/Device.dart
diff --git a/lib/html/src/Device.dart b/lib/html/src/Device.dart
index ecfc86008e4609791b2d1ec6bf5a7fa2a6361425..bc7976f9a49e64ccb893d0bd71c9ef4fa2c0c42f 100644
--- a/lib/html/src/Device.dart
+++ b/lib/html/src/Device.dart
@@ -27,4 +27,9 @@ class _Device {
* Determines if the current device is running Firefox.
*/
static bool get isFirefox => userAgent.contains("Firefox", 0);
+
+ /**
+ * Determines if the current device is running WebKit.
+ */
+ static bool get isWebKit => !isOpera && userAgent.contains("WebKit", 0);
}
« no previous file with comments | « lib/html/scripts/systemnative.py ('k') | lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698