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

Unified Diff: tools/dom/scripts/generator.py

Issue 11874003: Adding supported checks and flags to window.performance. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. 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
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index e7cff303889763283291445d1c77d1a197f3773b..d1d8cd9c011774286f00c63927c5c959468dc87d 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -637,6 +637,12 @@ _all_but_ie9_annotations = [
_history_annotations = _all_but_ie9_annotations
+_performance_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME)",
+ "@SupportedBrowser(SupportedBrowser.FIREFOX)",
+ "@SupportedBrowser(SupportedBrowser.IE)",
+]
+
# Annotations to be placed on generated members.
# The table is indexed as:
# INTERFACE: annotations to be added to the interface declaration
@@ -645,6 +651,7 @@ dart_annotations = {
'ArrayBuffer': _all_but_ie9_annotations,
'ArrayBufferView': _all_but_ie9_annotations,
'DOMWindow.indexedDB': _indexed_db_annotations,
+ 'DOMWindow.performance': _performance_annotations,
'Element.webkitCreateShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
@@ -698,6 +705,7 @@ dart_annotations = {
],
'IDBFactory': _indexed_db_annotations,
'IDBDatabase': _indexed_db_annotations,
+ 'Performance': _performance_annotations,
'ShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",

Powered by Google App Engine
This is Rietveld 408576698