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

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

Issue 11783069: Adding support checks for WebSocket. (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 | « tests/html/websocket_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index ca5e5399206433c7e53d7c43680ccf66f3058675..fc66c00c10aa939db46d9bccf3a15d7395f982ca 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -628,30 +628,22 @@ _indexed_db_annotations = [
"@Experimental()",
]
-_history_annotations = [
+_all_but_ie9_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@SupportedBrowser(SupportedBrowser.IE, '10')",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
]
+_history_annotations = _all_but_ie9_annotations
+
# Annotations to be placed on generated members.
# The table is indexed as:
# INTERFACE: annotations to be added to the interface declaration
# INTERFACE.MEMBER: annotation to be added to the member declaration
dart_annotations = {
- 'ArrayBuffer': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.FIREFOX)",
- "@SupportedBrowser(SupportedBrowser.IE, '10')",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- ],
- 'ArrayBufferView': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.FIREFOX)",
- "@SupportedBrowser(SupportedBrowser.IE, '10')",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- ],
+ 'ArrayBuffer': _all_but_ie9_annotations,
+ 'ArrayBufferView': _all_but_ie9_annotations,
'DOMWindow.indexedDB': _indexed_db_annotations,
'Element.webkitCreateShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
@@ -663,12 +655,7 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
],
- 'HTMLDataListElement': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.FIREFOX)",
- "@SupportedBrowser(SupportedBrowser.IE, '10')",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- ],
+ 'HTMLDataListElement': _all_but_ie9_annotations,
'HTMLDetailsElement': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
@@ -699,12 +686,7 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
],
- 'HTMLProgressElement': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.FIREFOX)",
- "@SupportedBrowser(SupportedBrowser.IE, '10')",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- ],
+ 'HTMLProgressElement': _all_but_ie9_annotations,
'HTMLShadowElement': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
@@ -720,6 +702,7 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
],
+ 'WebSocket': _all_but_ie9_annotations,
'WorkerContext.indexedDB': _indexed_db_annotations,
}
« no previous file with comments | « tests/html/websocket_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698