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), | |
61 native(false) {} | 60 native(false) {} |
62 | 61 |
63 VoiceData::~VoiceData() {} | 62 VoiceData::~VoiceData() {} |
64 | 63 |
65 | 64 |
66 // | 65 // |
67 // Utterance | 66 // Utterance |
68 // | 67 // |
69 | 68 |
70 // static | 69 // static |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 412 } |
414 | 413 |
415 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) { | 414 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) { |
416 voices_changed_delegates_.insert(delegate); | 415 voices_changed_delegates_.insert(delegate); |
417 } | 416 } |
418 | 417 |
419 void TtsController::RemoveVoicesChangedDelegate( | 418 void TtsController::RemoveVoicesChangedDelegate( |
420 VoicesChangedDelegate* delegate) { | 419 VoicesChangedDelegate* delegate) { |
421 voices_changed_delegates_.erase(delegate); | 420 voices_changed_delegates_.erase(delegate); |
422 } | 421 } |
| 422 |
OLD | NEW |