OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ |
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Methods from SpeechRecognitionEventListener. | 117 // Methods from SpeechRecognitionEventListener. |
118 virtual void OnRecognitionStart(int caller_id) OVERRIDE; | 118 virtual void OnRecognitionStart(int caller_id) OVERRIDE; |
119 virtual void OnAudioStart(int caller_id) OVERRIDE; | 119 virtual void OnAudioStart(int caller_id) OVERRIDE; |
120 virtual void OnEnvironmentEstimationComplete(int caller_id) OVERRIDE; | 120 virtual void OnEnvironmentEstimationComplete(int caller_id) OVERRIDE; |
121 virtual void OnSoundStart(int caller_id) OVERRIDE; | 121 virtual void OnSoundStart(int caller_id) OVERRIDE; |
122 virtual void OnSoundEnd(int caller_id) OVERRIDE; | 122 virtual void OnSoundEnd(int caller_id) OVERRIDE; |
123 virtual void OnAudioEnd(int caller_id) OVERRIDE; | 123 virtual void OnAudioEnd(int caller_id) OVERRIDE; |
124 virtual void OnRecognitionResult( | 124 virtual void OnRecognitionResult( |
125 int caller_id, const content::SpeechRecognitionResult& result) OVERRIDE; | 125 int caller_id, const content::SpeechRecognitionResult& result) OVERRIDE; |
126 virtual void OnRecognitionError( | 126 virtual void OnRecognitionError( |
127 int caller_id, | 127 int caller_id, const content::SpeechRecognitionError& error) OVERRIDE; |
128 const content::SpeechRecognitionErrorCode& error) OVERRIDE; | |
129 virtual void OnAudioLevelsChange(int caller_id, float volume, | 128 virtual void OnAudioLevelsChange(int caller_id, float volume, |
130 float noise_volume) OVERRIDE; | 129 float noise_volume) OVERRIDE; |
131 virtual void OnRecognitionEnd(int caller_id) OVERRIDE; | 130 virtual void OnRecognitionEnd(int caller_id) OVERRIDE; |
132 | 131 |
133 // Methods for API testing. | 132 // Methods for API testing. |
134 void SetSpeechInputExtensionInterface( | 133 void SetSpeechInputExtensionInterface( |
135 SpeechInputExtensionInterface* interface); | 134 SpeechInputExtensionInterface* interface); |
136 SpeechInputExtensionInterface* GetSpeechInputExtensionInterface(); | 135 SpeechInputExtensionInterface* GetSpeechInputExtensionInterface(); |
137 | 136 |
138 private: | 137 private: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // Used in the UI thread. | 195 // Used in the UI thread. |
197 scoped_ptr<content::NotificationRegistrar> registrar_; | 196 scoped_ptr<content::NotificationRegistrar> registrar_; |
198 SpeechInputExtensionInterface* speech_interface_; | 197 SpeechInputExtensionInterface* speech_interface_; |
199 scoped_ptr<SpeechInputExtensionNotification> notification_; | 198 scoped_ptr<SpeechInputExtensionNotification> notification_; |
200 | 199 |
201 // Used in the IO thread. | 200 // Used in the IO thread. |
202 scoped_refptr<content::SpeechRecognizer> recognizer_; | 201 scoped_refptr<content::SpeechRecognizer> recognizer_; |
203 }; | 202 }; |
204 | 203 |
205 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ | 204 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_ |
OLD | NEW |