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

Issue 3116019: Add code to support options for TTS speak. (Closed)

Created:
10 years, 4 months ago by Chaitanya
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Add code to support options for TTS speak. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56788

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -3 lines) Patch
M chrome/browser/extensions/extension_tts_api.cc View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Chaitanya
10 years, 4 months ago (2010-08-18 22:14:54 UTC) #1
Chaitanya
I will update the description for this parameter in extension_api.json in a separate CL? On ...
10 years, 4 months ago (2010-08-18 22:16:42 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/3116019/diff/6001/7001 File chrome/browser/extensions/extension_tts_api.cc (right): http://codereview.chromium.org/3116019/diff/6001/7001#newcode15 chrome/browser/extensions/extension_tts_api.cc:15: #include <fstream> nit: remove this (I assume it was ...
10 years, 4 months ago (2010-08-18 22:52:35 UTC) #3
Chaitanya
http://codereview.chromium.org/3116019/diff/6001/7001 File chrome/browser/extensions/extension_tts_api.cc (right): http://codereview.chromium.org/3116019/diff/6001/7001#newcode15 chrome/browser/extensions/extension_tts_api.cc:15: #include <fstream> On 2010/08/18 22:52:35, Antony Sargent wrote: > ...
10 years, 4 months ago (2010-08-18 23:47:56 UTC) #4
asargent_no_longer_on_chrome
lgtm w/ a few nits you should address before committing. http://codereview.chromium.org/3116019/diff/10001/11001 File chrome/browser/extensions/extension_tts_api.cc (right): http://codereview.chromium.org/3116019/diff/10001/11001#newcode46 ...
10 years, 4 months ago (2010-08-19 00:03:43 UTC) #5
Chaitanya
10 years, 4 months ago (2010-08-19 00:24:24 UTC) #6
Fixed nits. Running try bots now.
Thanks!

http://codereview.chromium.org/3116019/diff/10001/11001
File chrome/browser/extensions/extension_tts_api.cc (right):

http://codereview.chromium.org/3116019/diff/10001/11001#newcode46
chrome/browser/extensions/extension_tts_api.cc:46: void
AppendSpeakOptions(std::string key, std::string value,
On 2010/08/19 00:03:43, Antony Sargent wrote:
> Nit: It might be better to make this name singlar, ie "AppendSpeakOption",
since
> this only appends one option at at time. 

Done.

http://codereview.chromium.org/3116019/diff/10001/11001#newcode47
chrome/browser/extensions/extension_tts_api.cc:47: std::string& options) {
On 2010/08/19 00:03:43, Antony Sargent wrote:
> Nit: we only allow pass-by-reference for const reference types. You should
pass
> options as std::string* instead of std::string&.
> 

Done.

http://codereview.chromium.org/3116019/diff/10001/11001#newcode79
chrome/browser/extensions/extension_tts_api.cc:79:
base::DoubleToString(real_value * 5), options);
On 2010/08/19 00:03:43, Antony Sargent wrote:
> Nit: there was a recent thread on chromium-dev about function argument
> formatting, where the conclusion was that we should have a preference for
> aligning arguments with each other. So lines here should be intended like
this:
> 
> SomeFunctionName(SomeParameter
>                  SomeOtherParameter);
> 
> or
> 
> SomeFunctionName(
>     SomeParameter
>     SomeOtherParameter);
> 
> 
> http://groups.google.com/a/chromium.org/group/chromium-
> dev/browse_thread/thread/e84e1cbf130f772e/07a18dfd69e2b26e
> 
> 
> Also, you could shorten this by adding
> 
> using base::DoubleToString;
> 
> at the top of the file, and then just calling DoubleToString various places
> here. 
> 
> 
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698