| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: | |
| 6 // This file contains documentation that is merged into the real source. | |
| 7 // Do not make code changes here. | |
| 8 | |
| 9 /// @domName SpeechRecognition | |
| 10 interface SpeechRecognition extends EventTarget default _SpeechRecognitionFactor
yProvider { | |
| 11 | |
| 12 SpeechRecognition(); | |
| 13 | |
| 14 /** | |
| 15 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | |
| 16 */ | |
| 17 SpeechRecognitionEvents get on(); | |
| 18 | |
| 19 /** @domName SpeechRecognition.continuous */ | |
| 20 bool continuous; | |
| 21 | |
| 22 /** @domName SpeechRecognition.grammars */ | |
| 23 SpeechGrammarList grammars; | |
| 24 | |
| 25 /** @domName SpeechRecognition.lang */ | |
| 26 String lang; | |
| 27 | |
| 28 /** @domName SpeechRecognition.abort */ | |
| 29 void abort(); | |
| 30 | |
| 31 /** @domName SpeechRecognition.addEventListener */ | |
| 32 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); | |
| 33 | |
| 34 /** @domName SpeechRecognition.dispatchEvent */ | |
| 35 bool $dom_dispatchEvent(Event evt); | |
| 36 | |
| 37 /** @domName SpeechRecognition.removeEventListener */ | |
| 38 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); | |
| 39 | |
| 40 /** @domName SpeechRecognition.start */ | |
| 41 void start(); | |
| 42 | |
| 43 /** @domName SpeechRecognition.stop */ | |
| 44 void stop(); | |
| 45 } | |
| 46 | |
| 47 interface SpeechRecognitionEvents extends Events { | |
| 48 | |
| 49 EventListenerList get audioEnd(); | |
| 50 | |
| 51 EventListenerList get audioStart(); | |
| 52 | |
| 53 EventListenerList get end(); | |
| 54 | |
| 55 EventListenerList get error(); | |
| 56 | |
| 57 EventListenerList get noMatch(); | |
| 58 | |
| 59 EventListenerList get result(); | |
| 60 | |
| 61 EventListenerList get resultDeleted(); | |
| 62 | |
| 63 EventListenerList get soundEnd(); | |
| 64 | |
| 65 EventListenerList get soundStart(); | |
| 66 | |
| 67 EventListenerList get speechEnd(); | |
| 68 | |
| 69 EventListenerList get speechStart(); | |
| 70 | |
| 71 EventListenerList get start(); | |
| 72 } | |
| OLD | NEW |