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

Issue 15108002: Add Pause and Resume to Web TTS & Extension TTS APIs (Closed)

Created:
7 years, 7 months ago by dmazzoni
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add Pause and Resume to Web TTS & Extension TTS APIs The web speech spec already includes pause and resume, this completes the implementation. For parity, this change also adds support for Pause and Resume to Chrome's TTS extension API and TTS Engine extension APIs. BUG=171887 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203146

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix unit tests #

Patch Set 4 : Fix compile #

Patch Set 5 : Make sure Stop un-pauses #

Patch Set 6 : Fix typo #

Total comments: 12

Patch Set 7 : Address feedback #

Patch Set 8 : Rebase #

Total comments: 7

Patch Set 9 : rebase, remove unused parameters from json #

Total comments: 2

Patch Set 10 : Start does not need to imply resume. #

Patch Set 11 : Add Android stubs #

Patch Set 12 : Android compile fix #

Patch Set 13 : Added back parameters, tests fail without them #

Patch Set 14 : Rebase #

Patch Set 15 : Fix test #

Patch Set 16 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -43 lines) Patch
M build/linux/system.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_engine_extension_api.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_engine_extension_api.cc View 1 2 3 4 5 6 5 chunks +65 lines, -4 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api.cc View 5 chunks +22 lines, -29 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api_constants.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api_constants.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +47 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_chromeos.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_controller.h View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/speech/tts_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +40 lines, -1 line 0 comments Download
M chrome/browser/speech/tts_controller_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/speech/tts_mac.mm View 1 2 3 4 5 6 6 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_message_filter.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/speech/tts_platform.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_win.cc View 1 2 3 4 5 5 chunks +31 lines, -1 line 0 comments Download
M chrome/common/extensions/api/tts.json View 9 10 11 12 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/tts_engine.json View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/tts/pause_resume/manifest.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/tts/pause_resume/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/tts/pause_resume/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
dmazzoni
dtseng: TTS code kalman: OWNERS review for extension api code
7 years, 7 months ago (2013-05-13 05:41:58 UTC) #1
not at google - send to devlin
extensions lgtm https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode151 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:151: DispatchEventToExtension(utterance->extension_id(), event.Pass()); Consider sending a warning to ...
7 years, 7 months ago (2013-05-13 14:46:53 UTC) #2
David Tseng
https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_controller.cc File chrome/browser/speech/tts_controller.cc (left): https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_controller.cc#oldcode136 chrome/browser/speech/tts_controller.cc:136: } else { What happens if we're currently paused ...
7 years, 7 months ago (2013-05-13 17:49:54 UTC) #3
dmazzoni
https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_controller.cc File chrome/browser/speech/tts_controller.cc (right): https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_controller.cc#newcode135 chrome/browser/speech/tts_controller.cc:135: if (paused_ || (IsSpeaking() && utterance->can_enqueue())) { On 2013/05/13 ...
7 years, 7 months ago (2013-05-13 19:34:38 UTC) #4
David Tseng
Still looking at the rest of the patch; the other comment still applies. On Mon, ...
7 years, 7 months ago (2013-05-13 20:17:26 UTC) #5
David Tseng
https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_linux.cc File chrome/browser/speech/tts_linux.cc (right): https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/tts_linux.cc#newcode187 chrome/browser/speech/tts_linux.cc:187: libspeechd_loader_.spd_pause(conn_); Any issues with calling pause (or resume) repeatedly? ...
7 years, 7 months ago (2013-05-13 21:22:48 UTC) #6
dmazzoni
https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/15108002/diff/22001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode151 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:151: DispatchEventToExtension(utterance->extension_id(), event.Pass()); On 2013/05/13 14:46:53, kalman wrote: > Consider ...
7 years, 7 months ago (2013-05-14 16:50:27 UTC) #7
dmazzoni
Hey, just a reminder that I'm ready for both of you to take another look ...
7 years, 7 months ago (2013-05-20 14:57:45 UTC) #8
not at google - send to devlin
some more minor comments after which lgtm https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode42 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:42: Profile* profile, ...
7 years, 7 months ago (2013-05-20 17:29:53 UTC) #9
David Tseng
https://codereview.chromium.org/15108002/diff/22001/chrome/common/extensions/api/tts_engine.json File chrome/common/extensions/api/tts_engine.json (right): https://codereview.chromium.org/15108002/diff/22001/chrome/common/extensions/api/tts_engine.json#newcode104 chrome/common/extensions/api/tts_engine.json:104: "description": "Optional: if an engine supports the pause event, ...
7 years, 7 months ago (2013-05-20 17:39:50 UTC) #10
David Tseng
https://codereview.chromium.org/15108002/diff/43001/chrome/common/extensions/api/tts.json File chrome/common/extensions/api/tts.json (right): https://codereview.chromium.org/15108002/diff/43001/chrome/common/extensions/api/tts.json#newcode186 chrome/common/extensions/api/tts.json:186: "description": "Pauses speech synthesis, potentially in the middle of ...
7 years, 7 months ago (2013-05-20 17:44:19 UTC) #11
dmazzoni
On 2013/05/20 17:44:19, David Tseng wrote: > chrome/common/extensions/api/tts.json:186: "description": "Pauses speech > synthesis, potentially in ...
7 years, 7 months ago (2013-05-21 03:12:43 UTC) #12
dmazzoni
https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode42 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:42: Profile* profile, EventRouter* event_router, std::string extension_id) { On 2013/05/20 ...
7 years, 7 months ago (2013-05-21 04:56:27 UTC) #13
David Tseng
https://codereview.chromium.org/15108002/diff/53001/chrome/common/extensions/api/tts_engine.json File chrome/common/extensions/api/tts_engine.json (right): https://codereview.chromium.org/15108002/diff/53001/chrome/common/extensions/api/tts_engine.json#newcode104 chrome/common/extensions/api/tts_engine.json:104: "description": "Optional: if an engine supports the pause event, ...
7 years, 7 months ago (2013-05-21 16:50:41 UTC) #14
not at google - send to devlin
https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/15108002/diff/43001/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode42 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:42: Profile* profile, EventRouter* event_router, std::string extension_id) { On 2013/05/21 ...
7 years, 7 months ago (2013-05-21 17:22:54 UTC) #15
dmazzoni
https://codereview.chromium.org/15108002/diff/53001/chrome/common/extensions/api/tts_engine.json File chrome/common/extensions/api/tts_engine.json (right): https://codereview.chromium.org/15108002/diff/53001/chrome/common/extensions/api/tts_engine.json#newcode104 chrome/common/extensions/api/tts_engine.json:104: "description": "Optional: if an engine supports the pause event, ...
7 years, 6 months ago (2013-05-28 07:37:31 UTC) #16
David Tseng
lgtm On Tue, May 28, 2013 at 12:37 AM, <dmazzoni@chromium.org> wrote: > > https://codereview.chromium.**org/15108002/diff/53001/** > ...
7 years, 6 months ago (2013-05-28 16:30:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/15108002/80001
7 years, 6 months ago (2013-05-29 05:01:51 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=119431
7 years, 6 months ago (2013-05-29 07:05:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/15108002/104001
7 years, 6 months ago (2013-05-30 13:59:01 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 15:17:23 UTC) #21
Message was sent while issue was closed.
Change committed as 203146

Powered by Google App Engine
This is Rietveld 408576698