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; |
}; |