Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5860)

Unified Diff: chrome/browser/speech/tts_controller.h

Issue 1014143003: Change set_continuous_parameters() for removing duplicated behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/tts_controller.h
diff --git a/chrome/browser/speech/tts_controller.h b/chrome/browser/speech/tts_controller.h
index 8f32cd93c152b47125a7bc6751e541088fba41db..6b005c4aac9bb393e2bdecfb26783e9c633cc826 100644
--- a/chrome/browser/speech/tts_controller.h
+++ b/chrome/browser/speech/tts_controller.h
@@ -172,8 +172,12 @@ class Utterance {
}
TtsGenderType gender() const { return gender_; }
- void set_continuous_parameters(const UtteranceContinuousParameters& params) {
- continuous_parameters_ = params;
+ void set_continuous_parameters(const double rate,
+ const double pitch,
+ const double volume) {
+ continuous_parameters_.rate = rate;
+ continuous_parameters_.pitch = pitch;
+ continuous_parameters_.volume = volume;
}
const UtteranceContinuousParameters& continuous_parameters() {
return continuous_parameters_;
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.cc ('k') | chrome/browser/speech/tts_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698