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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11874003: Adding supported checks and flags to window.performance. (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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 2a525136f049e5697bf5105e4fd405cce3036139..980a73e7dcb5a3f6ed604b6d340a89a3e45a5eee 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -15514,8 +15514,16 @@ class ParamElement extends Element native "*HTMLParamElement" {
/// @domName Performance; @docsEditable true
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.FIREFOX)
+@SupportedBrowser(SupportedBrowser.IE)
class Performance extends EventTarget native "*Performance" {
+ /**
+ * Checks if this type is supported on the current platform
Emily Fortuna 2013/01/11 21:16:12 nit: end in a "." and this could probably be a one
blois 2013/01/11 21:28:02 Done.
+ */
+ static bool get supported => JS('bool', '!!(window.performance)');
+
/// @domName Performance.memory; @docsEditable true
final MemoryInfo memory;
@@ -21525,6 +21533,7 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
final dynamic _parent;
/// @domName Window.performance; @docsEditable true
+ @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE)
final Performance performance;
/// @domName Window.personalbar; @docsEditable true
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698