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

Issue 10820062: [Mac]: Enable speech sub-menu under the edit menu and pipe it through to the renderer. (Closed)

Created:
8 years, 4 months ago by Alexei Svitkine (slow)
Modified:
8 years, 4 months ago
Reviewers:
Avi (use Gerrit), Nico
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

[Mac]: Enable speech sub-menu under the edit menu and refactor speech implementation. MainMenu.xib changes: Add submenu "Speech" with items "Start Speaking" and "Stop Speaking" to the Edit menu (with localized ids for names). This is a followup to http://crrev.com/126602, which implemented speech support in the context menu. This changes also updates the context menu implementation to go through the new one in the render view. Also fixes some warnings found by 'gcl lint'. BUG=31107, 46153 TEST=Select some text on a web page and go to Edit -> Speech -> Start Speaking. The selected text should be spoken. While some text is being spoken, go to Edit -> Speech -> Stop Speaking. The speech should stop. When no text is being spoken, Edit -> Speech -> Stop Speaking should be disabled. Try the same steps as above but with selected text in the omnibox. It should also work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150364

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : sp #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -30 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/app/nibs/MainMenu.xib View 1 2 13 chunks +95 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/render_view_context_menu_mac.mm View 1 2 4 chunks +17 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 chunks +44 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Alexei Svitkine (slow)
Another patch I wrote up on the plane this morning. This one's a bit bigger...
8 years, 4 months ago (2012-07-27 22:35:32 UTC) #1
Nico
Looks fine. Are you going to change chrome/browser/tab_contents/render_view_context_menu_mac.mm to send a "start speaking" ipc instead ...
8 years, 4 months ago (2012-07-27 22:44:26 UTC) #2
Alexei Svitkine (slow)
I'll have to think about making the context menu take the same path. I can ...
8 years, 4 months ago (2012-07-27 22:49:47 UTC) #3
Nico
I don't know a naming convention for shared strings. Maybe just "IDS_SPEAK_MAC". Not terribly important ...
8 years, 4 months ago (2012-07-27 22:57:56 UTC) #4
Alexei Svitkine (slow)
I've updated the CL to use a common TTS implementation that lives on the Mac ...
8 years, 4 months ago (2012-07-28 15:29:12 UTC) #5
Nico
LGTM!
8 years, 4 months ago (2012-07-28 16:13:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10820062/1033
8 years, 4 months ago (2012-07-28 16:14:17 UTC) #7
commit-bot: I haz the power
Presubmit check for 10820062-1033 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-28 16:14:23 UTC) #8
Alexei Svitkine (slow)
+avi for content/ review
8 years, 4 months ago (2012-07-28 16:14:47 UTC) #9
Alexei Svitkine (slow)
ping
8 years, 4 months ago (2012-08-02 18:32:53 UTC) #10
Nico
avi: your ping
8 years, 4 months ago (2012-08-02 18:33:25 UTC) #11
Alexei Svitkine (slow)
I now realise this can be done simpler without needing an IPC round-trip to the ...
8 years, 4 months ago (2012-08-04 02:15:37 UTC) #12
Alexei Svitkine (slow)
sp
8 years, 4 months ago (2012-08-06 15:30:31 UTC) #13
Alexei Svitkine (slow)
Simplified the implementation to remove the IPCs to and back from the renderer. PTAL.
8 years, 4 months ago (2012-08-06 15:32:42 UTC) #14
Nico
lgtm http://codereview.chromium.org/10820062/diff/17001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10820062/diff/17001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode774 content/browser/renderer_host/render_widget_host_view_mac.mm:774: // validates this before enabling the item. With ...
8 years, 4 months ago (2012-08-06 15:47:31 UTC) #15
Alexei Svitkine (slow)
http://codereview.chromium.org/10820062/diff/17001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10820062/diff/17001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode774 content/browser/renderer_host/render_widget_host_view_mac.mm:774: // validates this before enabling the item. On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 16:30:41 UTC) #16
Avi (use Gerrit)
lgtm
8 years, 4 months ago (2012-08-07 14:21:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10820062/2015
8 years, 4 months ago (2012-08-07 14:24:28 UTC) #18
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 17:20:52 UTC) #19
Change committed as 150364

Powered by Google App Engine
This is Rietveld 408576698