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

Issue 6020017: Mac: Enable "Check Spelling While Typing" in Edit menu... (Closed)

Created:
9 years, 11 months ago by sail
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Nico
Visibility:
Public.

Description

Mac: Enable "Check Spelling While Typing" in Edit menu Currently the "Edit -> Spelling and Grammar -> Check Spelling While Typing" menu item is always disabled. The problem is that the logic to enable / disable this item lives in the render process and not in the UI. This patch implements a generic message that the render process can send to the browser to update the state of view commands. This is used to enable and disable the "Check Spelling While Typing" menu item. BUG=38440 TEST=Clicked in an edit box and verified that the "Check Spelling While Typing" menu item was enabled. Verified that changing the value from the context menu correctly updates the Edit menu as well.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Total comments: 13

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -13 lines) Patch
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 3 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 3 chunks +37 lines, -1 line 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/render_view_commands.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 6 chunks +47 lines, -12 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sail
9 years, 11 months ago (2011-01-06 23:01:29 UTC) #1
sail
9 years, 11 months ago (2011-01-06 23:03:33 UTC) #2
pink (ping after 24hrs)
Looks reasonable to me, you should probably talk to darin and brett about this approach. ...
9 years, 11 months ago (2011-01-07 15:24:18 UTC) #3
sail
Hi Darin and Brett, could you take a quick look at this patch and let ...
9 years, 11 months ago (2011-01-07 20:30:44 UTC) #4
sail
I forgot to mention that this patch requires adding an extra message to WebKit/WebKit/chromium/public/WebViewClient.h and ...
9 years, 11 months ago (2011-01-07 20:37:41 UTC) #5
brettw
http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc#newcode366 chrome/browser/renderer_host/render_view_host.cc:366: std::map<std::string, CommandState>::const_iterator it = A couple of comments on ...
9 years, 11 months ago (2011-01-09 00:06:06 UTC) #6
sail
http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc#newcode366 chrome/browser/renderer_host/render_view_host.cc:366: std::map<std::string, CommandState>::const_iterator it = On 2011/01/09 00:06:06, brettw wrote: ...
9 years, 11 months ago (2011-01-11 18:45:51 UTC) #7
brettw
Let's put it in chrome/common/command_state or something (match the enum name). We don't want it ...
9 years, 11 months ago (2011-01-11 23:30:39 UTC) #8
sail
http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/6020017/diff/8001/chrome/browser/renderer_host/render_view_host.cc#newcode366 chrome/browser/renderer_host/render_view_host.cc:366: std::map<std::string, CommandState>::const_iterator it = On 2011/01/09 00:06:06, brettw wrote: ...
9 years, 11 months ago (2011-01-12 01:26:36 UTC) #9
brettw
Thanks, I like the enums better. http://codereview.chromium.org/6020017/diff/21001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/6020017/diff/21001/chrome/browser/renderer_host/render_view_host.cc#newcode365 chrome/browser/renderer_host/render_view_host.cc:365: switch (command) { ...
9 years, 11 months ago (2011-01-13 05:59:50 UTC) #10
sail
Addressed review comments. http://codereview.chromium.org/6020017/diff/21001/chrome/browser/renderer_host/render_view_host.cc File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/6020017/diff/21001/chrome/browser/renderer_host/render_view_host.cc#newcode365 chrome/browser/renderer_host/render_view_host.cc:365: switch (command) { On 2011/01/13 05:59:55, ...
9 years, 11 months ago (2011-01-13 23:38:15 UTC) #11
brettw
http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc#newcode4621 chrome/renderer/render_view.cc:4621: linked_ptr<WebNode> RenderView::GetFocusedNode() const { I've never seen us use ...
9 years, 11 months ago (2011-01-18 18:25:43 UTC) #12
sail
http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc#newcode4621 chrome/renderer/render_view.cc:4621: linked_ptr<WebNode> RenderView::GetFocusedNode() const { On 2011/01/18 18:25:43, brettw wrote: ...
9 years, 11 months ago (2011-01-18 18:41:12 UTC) #13
brettw
http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc#newcode4621 chrome/renderer/render_view.cc:4621: linked_ptr<WebNode> RenderView::GetFocusedNode() const { It has an IsNull function ...
9 years, 11 months ago (2011-01-18 18:44:16 UTC) #14
sail
http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6020017/diff/32001/chrome/renderer/render_view.cc#newcode4621 chrome/renderer/render_view.cc:4621: linked_ptr<WebNode> RenderView::GetFocusedNode() const { On 2011/01/18 18:44:17, brettw wrote: ...
9 years, 11 months ago (2011-01-18 19:09:17 UTC) #15
brettw
LGTM with one nit on everything except the objective C part, which I'm not qualified ...
9 years, 11 months ago (2011-01-18 19:17:01 UTC) #16
pink (ping after 24hrs)
obj-c parts LGTM
9 years, 11 months ago (2011-01-18 19:27:55 UTC) #17
sail
http://codereview.chromium.org/6020017/diff/45001/chrome/renderer/render_view.h File chrome/renderer/render_view.h (right): http://codereview.chromium.org/6020017/diff/45001/chrome/renderer/render_view.h#newcode1103 chrome/renderer/render_view.h:1103: WebKit::WebNode GetFocusedNode() const; On 2011/01/18 19:17:01, brettw wrote: > ...
9 years, 11 months ago (2011-01-18 20:46:48 UTC) #18
sail
9 years, 11 months ago (2011-01-26 00:19:00 UTC) #19
Submitted as r72570

Powered by Google App Engine
This is Rietveld 408576698