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

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

Issue 12026032: Adding supported checks & test for SpeechRecognition APIs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changing event type constructor. 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/speechrecognition_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 8237133d9fe292146e7c27eee0ca41b9d67556a2..8fa13f64ba2b4eb14342eff5adca411ce5d162e6 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -692,6 +692,11 @@ _performance_annotations = [
"@SupportedBrowser(SupportedBrowser.IE)",
]
+_speech_recognition_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
+ "@Experimental()",
+]
+
# Annotations to be placed on generated members.
# The table is indexed as:
# INTERFACE: annotations to be added to the interface declaration
@@ -770,6 +775,11 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
],
+ 'SpeechRecognition': _speech_recognition_annotations,
+ 'SpeechRecognitionAlternative': _speech_recognition_annotations,
+ 'SpeechRecognitionError': _speech_recognition_annotations,
+ 'SpeechRecognitionEvent': _speech_recognition_annotations,
+ 'SpeechRecognitionResult': _speech_recognition_annotations,
'WebSocket': _all_but_ie9_annotations,
'WorkerContext.indexedDB': _indexed_db_annotations,
'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
« no previous file with comments | « tests/html/speechrecognition_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698