OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebSpeechRecognizerClient_h | 26 #ifndef WebSpeechRecognizerClient_h |
27 #define WebSpeechRecognizerClient_h | 27 #define WebSpeechRecognizerClient_h |
28 | 28 |
29 #include "../platform/WebVector.h" | 29 #include "../platform/WebVector.h" |
30 | 30 |
31 namespace WebKit { | 31 namespace blink { |
32 | 32 |
33 class WebSpeechRecognitionResult; | 33 class WebSpeechRecognitionResult; |
34 class WebSpeechRecognitionHandle; | 34 class WebSpeechRecognitionHandle; |
35 class WebString; | 35 class WebString; |
36 | 36 |
37 // A client for reporting progress on speech recognition for a specific handle. | 37 // A client for reporting progress on speech recognition for a specific handle. |
38 class WebSpeechRecognizerClient { | 38 class WebSpeechRecognizerClient { |
39 public: | 39 public: |
40 enum ErrorCode { | 40 enum ErrorCode { |
41 OtherError = 0, | 41 OtherError = 0, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void didStart(const WebSpeechRecognitionHandle&) = 0; | 87 virtual void didStart(const WebSpeechRecognitionHandle&) = 0; |
88 | 88 |
89 // To be called when the recognition session has ended. This must always be | 89 // To be called when the recognition session has ended. This must always be |
90 // called, no matter the reason for the end. | 90 // called, no matter the reason for the end. |
91 virtual void didEnd(const WebSpeechRecognitionHandle&) = 0; | 91 virtual void didEnd(const WebSpeechRecognitionHandle&) = 0; |
92 | 92 |
93 protected: | 93 protected: |
94 virtual ~WebSpeechRecognizerClient() {} | 94 virtual ~WebSpeechRecognizerClient() {} |
95 }; | 95 }; |
96 | 96 |
97 } // namespace WebKit | 97 } // namespace blink |
98 | 98 |
99 #endif // WebSpeechRecognizerClient_h | 99 #endif // WebSpeechRecognizerClient_h |
OLD | NEW |