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

Unified Diff: Source/modules/speech/SpeechSynthesisErrorEvent.idl

Issue 1044053002: [WIP] Add SpeechSynthesisErrorevent Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated 3rd patch Created 5 years, 8 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 | « Source/modules/speech/SpeechSynthesisErrorEvent.cpp ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechSynthesisErrorEvent.idl
diff --git a/Source/modules/speech/SpeechRecognitionEvent.idl b/Source/modules/speech/SpeechSynthesisErrorEvent.idl
similarity index 75%
copy from Source/modules/speech/SpeechRecognitionEvent.idl
copy to Source/modules/speech/SpeechSynthesisErrorEvent.idl
index 289b1034ef990b44a95fa2142bed5fba6f2ad381..0a97ee6d11ea014cc2241b7ba0f903edc4f3ee7c 100644
--- a/Source/modules/speech/SpeechRecognitionEvent.idl
+++ b/Source/modules/speech/SpeechSynthesisErrorEvent.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,13 +23,20 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- NoInterfaceObject,
- Constructor(DOMString type, optional SpeechRecognitionEventInit initDict),
-] interface SpeechRecognitionEvent : Event {
- readonly attribute unsigned long resultIndex;
- readonly attribute SpeechRecognitionResultList results;
+enum ErrorCode {
+ "canceled",
+ "interrupted",
+ "audio-busy",
+ "audio-hardware",
+ "network",
+ "synthesis-unavailable",
+ "synthesis-failed",
+ "language-unavailable",
+ "voice-unavailable",
+ "text-too-long",
+ "invalid-argument"
+};
- readonly attribute Document interpretation;
- readonly attribute Document emma;
+interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
+ readonly attribute ErrorCode error;
};
« no previous file with comments | « Source/modules/speech/SpeechSynthesisErrorEvent.cpp ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698