| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [DartPackage="mojo_services", JavaPackage="org.chromium.mojo.speech_recognizer"] | 5 [DartPackage="mojo_services", JavaPackage="org.chromium.mojo.speech_recognizer"] |
| 6 module speech_recognizer; | 6 module speech_recognizer; |
| 7 | 7 |
| 8 enum Error { | 8 enum Error { |
| 9 NETWORK_TIMEOUT = 1, | 9 NETWORK_TIMEOUT = 1, |
| 10 NETWORK = 2, | 10 NETWORK = 2, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 interface SpeechRecognizerService { | 36 interface SpeechRecognizerService { |
| 37 // Starts listening to the user. When listening has finished or an error | 37 // Starts listening to the user. When listening has finished or an error |
| 38 // occurs, returns |result_or_error|. Any call to Listen() made while another | 38 // occurs, returns |result_or_error|. Any call to Listen() made while another |
| 39 // is in progress will immediately return an error. | 39 // is in progress will immediately return an error. |
| 40 Listen() => (ResultOrError result_or_error); | 40 Listen() => (ResultOrError result_or_error); |
| 41 | 41 |
| 42 // Stops the SpeechRecognizer from listening and finishes any previous call | 42 // Stops the SpeechRecognizer from listening and finishes any previous call |
| 43 // to Listen() causing it to return. | 43 // to Listen() causing it to return. |
| 44 StopListening(); | 44 StopListening(); |
| 45 }; | 45 }; |
| OLD | NEW |