/external/chromium_org/chrome/browser/speech/extension_api/ |
tts_engine_extension_api.h | 14 class Utterance; 35 // manifest that matches the speech parameters of this utterance. 39 bool GetMatchingExtensionVoice(Utterance* utterance, 43 // Speak the given utterance by sending an event to the given TTS engine 45 void ExtensionTtsEngineSpeak(Utterance* utterance, 48 // Stop speaking the given utterance by sending an event to the extension 49 // associated with this utterance. 50 void ExtensionTtsEngineStop(Utterance* utterance) [all...] |
tts_engine_extension_api.cc | 120 void ExtensionTtsEngineSpeak(Utterance* utterance, const VoiceData& voice) { 122 // utterance around and track it. If not, we're finished with this 123 // utterance now. 127 args->Set(0, Value::CreateStringValue(utterance->text())); 132 utterance->options()->DeepCopy())); 147 args->Set(2, Value::CreateIntegerValue(utterance->id())); 151 event->restrict_to_profile = utterance->profile(); 152 ExtensionSystem::Get(utterance->profile())->event_router()-> 153 DispatchEventToExtension(utterance->extension_id(), event.Pass()) [all...] |
tts_extension_api.cc | 81 // One of these is constructed for each utterance, and deleted 82 // when the utterance gets any final event. 85 virtual void OnTtsEvent(Utterance* utterance, 91 void TtsExtensionEventHandler::OnTtsEvent(Utterance* utterance, 95 if (utterance->src_id() < 0) 99 utterance->desired_event_types(); 113 details->SetInteger(constants::kSrcIdKey, utterance->src_id()); 114 details->SetBoolean(constants::kIsFinalEventKey, utterance->finished()) 259 Utterance* utterance = new Utterance(profile()); local [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_tts_api.h | 21 // Speak the given utterance with the given parameters if possible, 22 // and return true on success. Utterance will always be nonempty. 26 // The ExtensionTtsController will only try to speak one utterance at 31 const std::string& utterance, 57 // One speech utterance. 58 class Utterance { 60 // Construct an utterance given a profile, the text to speak, 62 // when the utterance is done speaking. 63 Utterance(Profile* profile, 67 ~Utterance(); [all...] |
extension_tts_api.cc | 20 const char kSpeechInterruptedError[] = "Utterance interrupted."; 21 const char kSpeechRemovedFromQueueError[] = "Utterance removed from queue."; 47 // Utterance 51 int Utterance::next_utterance_id_ = 0; 53 Utterance::Utterance(Profile* profile, 101 Utterance::~Utterance() { 105 void Utterance::FinishAndDestroy() { 131 void ExtensionTtsController::SpeakOrEnqueue(Utterance* utterance) 289 Utterance* utterance = utterance_queue_.front(); local 297 Utterance* utterance = utterance_queue_.front(); local [all...] |
/external/chromium_org/chrome/browser/speech/ |
tts_controller_unittest.cc | 23 const std::string& utterance, 52 Utterance* utterance1 = new Utterance(NULL); 57 Utterance* utterance2 = new Utterance(NULL);
|
tts_controller.h | 17 class Utterance; 45 // Returns true if this event type is one that indicates an utterance 49 // The continuous parameters that apply to a given utterance. 79 virtual void OnTtsEvent(Utterance* utterance, 93 // One speech utterance. 94 class Utterance { 96 // Construct an utterance given a profile and a completion task to call 97 // when the utterance is done speaking. Before speaking this utterance, [all...] |
tts_controller.cc | 66 // Utterance 70 int Utterance::next_utterance_id_ = 0; 72 Utterance::Utterance(Profile* profile) 83 Utterance::~Utterance() { 87 void Utterance::OnTtsEvent(TtsEventType event_type, 101 void Utterance::Finish() { 105 void Utterance::set_options(const Value* options) { 134 void TtsController::SpeakOrEnqueue(Utterance* utterance) 304 Utterance* utterance = utterance_queue_.front(); local 317 Utterance* utterance = utterance_queue_.front(); local [all...] |
tts_message_filter.h | 30 virtual void OnTtsEvent(Utterance* utterance, 42 void OnSpeak(const TtsUtteranceRequest& utterance);
|
tts_message_filter.cc | 73 scoped_ptr<Utterance> utterance(new Utterance(profile_)); 74 utterance->set_src_id(request.id); 75 utterance->set_text(request.text); 76 utterance->set_lang(request.lang); 77 utterance->set_voice_name(request.voice); 78 utterance->set_can_enqueue(true); 84 utterance->set_continuous_parameters(params); 86 utterance->set_event_delegate(this) [all...] |
/external/chromium_org/chrome/browser/chromeos/accessibility/ |
accessibility_manager.cc | 484 Utterance* utterance = new Utterance(profile_); local 485 utterance->set_text(text); 486 utterance->set_lang(g_browser_process->GetApplicationLocale()); 487 utterance->set_continuous_parameters(params); 488 utterance->set_can_enqueue(false); 489 utterance->set_options(new DictionaryValue()); 492 controller->SpeakOrEnqueue(utterance);
|