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 "chrome/browser/extensions/speech_input/extension_speech_input_api.h" | 5 #include "chrome/browser/speech/extension_speech_input_api.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/extensions/speech_input/extension_speech_input_api_cons
tants.h" | |
10 #include "chrome/browser/extensions/speech_input/extension_speech_input_manager.
h" | |
11 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/speech/extension_speech_input_api_constants.h" |
| 11 #include "chrome/browser/speech/extension_speech_input_manager.h" |
12 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
13 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
14 #include "content/public/browser/notification_source.h" | 14 #include "content/public/browser/notification_source.h" |
15 | 15 |
16 namespace constants = extension_speech_input_api_constants; | 16 namespace constants = extension_speech_input_api_constants; |
17 | 17 |
18 SpeechInputAsyncFunction::SpeechInputAsyncFunction( | 18 SpeechInputAsyncFunction::SpeechInputAsyncFunction( |
19 int start_state, | 19 int start_state, |
20 int transition_state, | 20 int transition_state, |
21 int end_state, | 21 int end_state, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 profile())->Stop(extension_id(), &error_); | 155 profile())->Stop(extension_id(), &error_); |
156 } | 156 } |
157 | 157 |
158 bool IsRecordingSpeechInputFunction::RunImpl() { | 158 bool IsRecordingSpeechInputFunction::RunImpl() { |
159 // Do not access the AudioManager directly here to ensure the proper | 159 // Do not access the AudioManager directly here to ensure the proper |
160 // IsRecording behaviour in the API tests. | 160 // IsRecording behaviour in the API tests. |
161 result_.reset(Value::CreateBooleanValue( | 161 result_.reset(Value::CreateBooleanValue( |
162 ExtensionSpeechInputManager::GetForProfile(profile())->IsRecording())); | 162 ExtensionSpeechInputManager::GetForProfile(profile())->IsRecording())); |
163 return true; | 163 return true; |
164 } | 164 } |
OLD | NEW |