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

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

Issue 12041090: Changed how Experimental annotation works. No longer is a constructor. (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
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index cced66fc41d5eec48181b9d043361ffcee40f57c..d6bfb7e96cb43bc4703620357213417da646bca9 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -656,19 +656,19 @@ dart2js_annotations = {
# Placeholder to add experimental flag, implementation for this is
# pending in a separate CL.
dart_annotations = {
- 'Element.webkitMatchesSelector': ['@Experimental()'],
+ 'Element.webkitMatchesSelector': ['@Experimental'],
}
_indexed_db_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX, '15')",
"@SupportedBrowser(SupportedBrowser.IE, '10')",
- "@Experimental()",
+ "@Experimental",
]
_file_system_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
- "@Experimental()",
+ "@Experimental",
]
_all_but_ie9_annotations = [
@@ -681,7 +681,7 @@ _all_but_ie9_annotations = [
_webkit_experimental_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
- "@Experimental()",
+ "@Experimental",
]
_history_annotations = _all_but_ie9_annotations
@@ -694,7 +694,7 @@ _performance_annotations = [
_speech_recognition_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
- "@Experimental()",
+ "@Experimental",
]
# Annotations to be placed on generated members.
@@ -718,7 +718,7 @@ dart_annotations = {
'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
'Element.webkitCreateShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
- "@Experimental()",
+ "@Experimental",
],
'FileSystem': _file_system_annotations,
'FileSystemSync': _file_system_annotations,
@@ -731,7 +731,7 @@ dart_annotations = {
'History.replaceState': _history_annotations,
'HTMLContentElement': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
- "@Experimental()",
+ "@Experimental",
],
'HTMLDataListElement': _all_but_ie9_annotations,
'HTMLDetailsElement': _webkit_experimental_annotations,
@@ -759,7 +759,7 @@ dart_annotations = {
'HTMLProgressElement': _all_but_ie9_annotations,
'HTMLShadowElement': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
- "@Experimental()",
+ "@Experimental",
],
'HTMLTrackElement': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
@@ -772,14 +772,14 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
- "@Experimental()",
+ "@Experimental",
],
'NotificationCenter': _webkit_experimental_annotations,
'Performance': _performance_annotations,
'PopStateEvent': _history_annotations,
'ShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
- "@Experimental()",
+ "@Experimental",
],
'SpeechRecognition': _speech_recognition_annotations,
'SpeechRecognitionAlternative': _speech_recognition_annotations,
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/templates/html/dart2js/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698