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 #include "content/browser/speech/speech_input_manager.h" | 5 #include "content/browser/speech/speech_input_manager.h" |
6 | 6 |
7 #include "content/browser/browser_thread.h" | 7 #include "content/browser/browser_thread.h" |
8 #include "media/audio/audio_manager.h" | 8 #include "media/audio/audio_manager.h" |
9 | 9 |
10 namespace speech_input { | 10 namespace speech_input { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // If this is an ongoing recording or if we were displaying an error message | 177 // If this is an ongoing recording or if we were displaying an error message |
178 // to the user, abort it since user has switched focus. Otherwise | 178 // to the user, abort it since user has switched focus. Otherwise |
179 // recognition has started and keep that going so user can start speaking to | 179 // recognition has started and keep that going so user can start speaking to |
180 // another element while this gets the results in parallel. | 180 // another element while this gets the results in parallel. |
181 if (recording_caller_id_ == caller_id || !requests_[caller_id].is_active) { | 181 if (recording_caller_id_ == caller_id || !requests_[caller_id].is_active) { |
182 CancelRecognitionAndInformDelegate(caller_id); | 182 CancelRecognitionAndInformDelegate(caller_id); |
183 } | 183 } |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
| 187 SpeechInputManager::SpeechInputRequest::SpeechInputRequest() |
| 188 : delegate(NULL), |
| 189 is_active(false) { |
| 190 } |
| 191 |
| 192 SpeechInputManager::SpeechInputRequest::~SpeechInputRequest() { |
| 193 } |
| 194 |
187 } // namespace speech_input | 195 } // namespace speech_input |
OLD | NEW |