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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart

Issue 2896463002: DDC fixes for SpeechRecognition (Closed)
Patch Set: Created 3 years, 7 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: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
index ee6e27987222b401e8d4de374257088fcb588186..54d606c0deb083aa8579061883d25aefa9de60b8 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
@@ -88,6 +88,11 @@ final global_ = JS(
if (typeof SourceBufferList == "undefined") {
window.SourceBufferList = new MediaSource().sourceBuffers.constructor;
}
+ if (typeof SpeechRecognition == "undefined") {
+ window.SpeechRecognition = window.webkitSpeechRecognition;
+ window.SpeechRecognitionError = window.webkitSpeechRecognitionError;
+ window.SpeechRecognitionEvent = window.webkitSpeechRecognitionEvent;
+ }
}
var globalState = (typeof window != "undefined") ? window

Powered by Google App Engine
This is Rietveld 408576698