| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // request. | 51 // request. |
| 52 // |element_rect| is the display bounds of the html element requesting speech | 52 // |element_rect| is the display bounds of the html element requesting speech |
| 53 // input (in page coordinates). | 53 // input (in page coordinates). |
| 54 virtual void StartRecognition(Delegate* delegate, | 54 virtual void StartRecognition(Delegate* delegate, |
| 55 int caller_id, | 55 int caller_id, |
| 56 int render_process_id, | 56 int render_process_id, |
| 57 int render_view_id, | 57 int render_view_id, |
| 58 const gfx::Rect& element_rect, | 58 const gfx::Rect& element_rect, |
| 59 const std::string& language, | 59 const std::string& language, |
| 60 const std::string& grammar, | 60 const std::string& grammar, |
| 61 const std::string& origin_url); | 61 const std::string& origin_url, |
| 62 net::URLRequestContextGetter* context_getter, |
| 63 bool censor_results); |
| 62 virtual void CancelRecognition(int caller_id); | 64 virtual void CancelRecognition(int caller_id); |
| 63 virtual void CancelAllRequestsWithDelegate(Delegate* delegate); | 65 virtual void CancelAllRequestsWithDelegate(Delegate* delegate); |
| 64 virtual void StopRecording(int caller_id); | 66 virtual void StopRecording(int caller_id); |
| 65 | 67 |
| 66 // SpeechRecognizer::Delegate methods. | 68 // SpeechRecognizer::Delegate methods. |
| 67 virtual void DidStartReceivingAudio(int caller_id); | 69 virtual void DidStartReceivingAudio(int caller_id); |
| 68 virtual void SetRecognitionResult(int caller_id, | 70 virtual void SetRecognitionResult(int caller_id, |
| 69 bool error, | 71 bool error, |
| 70 const SpeechInputResultArray& result); | 72 const SpeechInputResultArray& result); |
| 71 virtual void DidCompleteRecording(int caller_id); | 73 virtual void DidCompleteRecording(int caller_id); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 152 |
| 151 // This typedef is to workaround the issue with certain versions of | 153 // This typedef is to workaround the issue with certain versions of |
| 152 // Visual Studio where it gets confused between multiple Delegate | 154 // Visual Studio where it gets confused between multiple Delegate |
| 153 // classes and gives a C2500 error. (I saw this error on the try bots - | 155 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 154 // the workaround was not needed for my machine). | 156 // the workaround was not needed for my machine). |
| 155 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; | 157 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; |
| 156 | 158 |
| 157 } // namespace speech_input | 159 } // namespace speech_input |
| 158 | 160 |
| 159 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 161 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| OLD | NEW |