| 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 #include "chrome/browser/speech/tts_controller.h" | 5 #include "chrome/browser/speech/tts_controller.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/float_util.h" | 10 #include "base/float_util.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 volume(-1) {} | 50 volume(-1) {} |
| 51 | 51 |
| 52 | 52 |
| 53 // | 53 // |
| 54 // VoiceData | 54 // VoiceData |
| 55 // | 55 // |
| 56 | 56 |
| 57 | 57 |
| 58 VoiceData::VoiceData() | 58 VoiceData::VoiceData() |
| 59 : gender(TTS_GENDER_NONE), | 59 : gender(TTS_GENDER_NONE), |
| 60 remote(false), |
| 60 native(false) {} | 61 native(false) {} |
| 61 | 62 |
| 62 VoiceData::~VoiceData() {} | 63 VoiceData::~VoiceData() {} |
| 63 | 64 |
| 64 | 65 |
| 65 // | 66 // |
| 66 // Utterance | 67 // Utterance |
| 67 // | 68 // |
| 68 | 69 |
| 69 // static | 70 // static |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 } | 413 } |
| 413 | 414 |
| 414 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) { | 415 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) { |
| 415 voices_changed_delegates_.insert(delegate); | 416 voices_changed_delegates_.insert(delegate); |
| 416 } | 417 } |
| 417 | 418 |
| 418 void TtsController::RemoveVoicesChangedDelegate( | 419 void TtsController::RemoveVoicesChangedDelegate( |
| 419 VoicesChangedDelegate* delegate) { | 420 VoicesChangedDelegate* delegate) { |
| 420 voices_changed_delegates_.erase(delegate); | 421 voices_changed_delegates_.erase(delegate); |
| 421 } | 422 } |
| 422 | |
| OLD | NEW |