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

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

Issue 12045033: Adding supported checks & test for SpeechRecognition APIs. (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/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 19c251e75c3fb2a0755cda878881e0c7f2d52fbe..2e545c9c20d528249c1bf35cf96b36e378809fb1 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -89,6 +89,8 @@ js_support_checks = {
'HTMLTrackElement': "Element.isTagSupported('track')",
'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
'Performance': "JS('bool', '!!(window.performance)')",
+ 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
+ "window.webkitSpeechRecognition)')",
'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
}
@@ -512,6 +514,7 @@ class Dart2JSBackend(HtmlDartGenerator):
'AudioContext',
'Blob',
'MutationObserver',
+ 'SpeechRecognition',
]
if self._interface.doc_js_name in WITH_CUSTOM_STATIC_FACTORY:
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698