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

Issue 1647723002: [win/cros/lin] Add back the spellcheck menu. (Closed)

Created:
4 years, 10 months ago by please use gerrit instead
Modified:
4 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[win/cros/lin] Add back the spellcheck submenu. This patch adds back the "Spellcheck" submenu to the context menu on Windows, ChromeOS, and Linux. This partially reverts commit http://crrev.com/5414139041953f2b558cfb0fdf8a4927a19a3144, but also adds support for multilingual spellcheck in the submenu via the "All languages" radio button. Selecting this radio button will spellcheck in all of the languages that are listed in the submenu. The language list can be modified in chrome://settings/languages. TBR=brettw@chromium.org BUG=544234 Committed: https://crrev.com/e59900a51f10891ee99368eda83ddec185f2b007 Cr-Commit-Position: refs/heads/master@{#375955}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Add tests and remove wrong dcheck. #

Patch Set 3 : Fix unused variable error. #

Total comments: 2

Patch Set 4 : Address Istiaque's comments. #

Total comments: 18

Patch Set 5 : Hoist up the mock render view context menu. #

Patch Set 6 : Address the rest of the comments. #

Patch Set 7 : Include what you use. #

Patch Set 8 : Add missing includes. #

Total comments: 14

Patch Set 9 : Address comments. #

Patch Set 10 : Fix signed/unsigned warning. #

Total comments: 2

Patch Set 11 : Include what you use. #

Patch Set 12 : Rebase #

Total comments: 12

Patch Set 13 : Fix typo. #

Patch Set 14 : Simplify. #

Patch Set 15 : Rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+728 lines, -218 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +21 lines, -6 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/renderer_context_menu/mock_render_view_context_menu.h View 1 2 3 4 5 6 7 8 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +143 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.h View 1 2 3 4 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +30 lines, -14 lines 0 comments Download
M chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +11 lines, -194 lines 0 comments Download
A chrome/browser/renderer_context_menu/spelling_options_submenu_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +193 lines, -0 lines 1 comment Download
A chrome/browser/renderer_context_menu/spelling_options_submenu_observer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +140 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M components/renderer_context_menu/render_view_context_menu_proxy.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (20 generated)
please use gerrit instead
Rachel, PTAL. Video of the submenu operation here: https://drive.google.com/a/google.com/file/d/0BwnAxYoFTeYPUGNGZFJOamhYZGM/view?usp=sharing
4 years, 10 months ago (2016-01-27 23:24:20 UTC) #2
please use gerrit instead
Istiaque, ptal chrome/browser/renderer_context_menu/. Most of this code is a revert of http://crrev.com/5414139041953f2b558cfb0fdf8a4927a19a3144. I am adding ...
4 years, 10 months ago (2016-01-27 23:29:27 UTC) #3
please use gerrit instead
Istiaque, ptal chrome/browser/renderer_context_menu/. Most of this code is a revert of http://crrev.com/5414139041953f2b558cfb0fdf8a4927a19a3144. I am adding ...
4 years, 10 months ago (2016-01-27 23:29:42 UTC) #5
please use gerrit instead
Ilya, ptal histograms.xml
4 years, 10 months ago (2016-01-27 23:32:39 UTC) #8
please use gerrit instead
Greg, ptal chrome_command_ids.h
4 years, 10 months ago (2016-01-27 23:33:55 UTC) #10
Ilya Sherman
histograms.xml lgtm
4 years, 10 months ago (2016-01-28 01:39:19 UTC) #11
grt (UTC plus 2)
chrome/app/chrome_command_ids.h lgtm
4 years, 10 months ago (2016-01-28 13:56:17 UTC) #12
lazyboy
I haven't finished looking at the whole CL yet, sending some comments. https://codereview.chromium.org/1647723002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc ...
4 years, 10 months ago (2016-01-28 20:36:25 UTC) #13
please use gerrit instead
Rachel & Istiaque, ptal patch 4. https://codereview.chromium.org/1647723002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/1647723002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1238 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1238: if (!spellchecker_submenu_observer_.get()) { ...
4 years, 10 months ago (2016-01-28 21:42:00 UTC) #14
groby-ooo-7-16
https://codereview.chromium.org/1647723002/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1647723002/diff/60001/chrome/app/generated_resources.grd#newcode993 chrome/app/generated_resources.grd:993: + <if expr="use_titlecase"> Do we ever use titlecase outside ...
4 years, 10 months ago (2016-01-28 22:49:29 UTC) #15
please use gerrit instead
Rachel & Istiaque, ptal patch 6. https://codereview.chromium.org/1647723002/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1647723002/diff/60001/chrome/app/generated_resources.grd#newcode993 chrome/app/generated_resources.grd:993: + <if expr="use_titlecase"> ...
4 years, 10 months ago (2016-01-29 20:09:35 UTC) #16
lazyboy
Mostly looks good from my side. Some comments. https://chromiumcodereview.appspot.com/1647723002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://chromiumcodereview.appspot.com/1647723002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1248 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1248: void ...
4 years, 10 months ago (2016-02-01 19:23:33 UTC) #17
please use gerrit instead
Rachel & Istiaque, ptal patch 9. https://codereview.chromium.org/1647723002/diff/160001/chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc File chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc (right): https://codereview.chromium.org/1647723002/diff/160001/chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc#newcode94 chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc:94: for (std::vector<MockMenuItem>::iterator it ...
4 years, 10 months ago (2016-02-01 20:20:57 UTC) #18
lazyboy
menu code lgtm. Also, add a little bit more context in the CL description please. ...
4 years, 10 months ago (2016-02-01 22:58:12 UTC) #19
please use gerrit instead
Bernhard, ptal chrome/browser/DEPS adding a dependency to components/prefs in patch 11. Rachel, ptal spelly things ...
4 years, 10 months ago (2016-02-02 00:28:08 UTC) #21
please use gerrit instead
https://chromiumcodereview.appspot.com/1647723002/diff/200001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc File chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc (right): https://chromiumcodereview.appspot.com/1647723002/diff/200001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc#newcode20 chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc:20: #include "content/public/browser/render_view_host.h" On 2016/02/01 22:58:12, lazyboy wrote: > Do ...
4 years, 10 months ago (2016-02-02 00:28:51 UTC) #22
please use gerrit instead
Bernhard, actually I don't need your review after a rebase. Now chrome/browser/ can depend on ...
4 years, 10 months ago (2016-02-02 00:41:26 UTC) #24
groby-ooo-7-16
Pending the resolution of the larger radio button question, too. https://codereview.chromium.org/1647723002/diff/240001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc File chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc (right): https://codereview.chromium.org/1647723002/diff/240001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc#newcode58 ...
4 years, 10 months ago (2016-02-04 18:59:10 UTC) #30
please use gerrit instead
Rachel, ptal patch 14. https://codereview.chromium.org/1647723002/diff/240001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc File chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc (right): https://codereview.chromium.org/1647723002/diff/240001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc#newcode58 chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc:58: for (size_t i = 0; ...
4 years, 10 months ago (2016-02-05 00:14:13 UTC) #31
please use gerrit instead
Rachel, fyi patch 15 is rebased on top of the new GetDictionaries() function. https://codereview.chromium.org/1647723002/diff/300001/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc File ...
4 years, 10 months ago (2016-02-16 22:56:54 UTC) #32
groby-ooo-7-16
I wish you had kept the refactorings in separate CLs, but... LGTM
4 years, 10 months ago (2016-02-17 01:20:37 UTC) #33
Ilya Sherman
histograms.xml lgtm
4 years, 10 months ago (2016-02-17 01:24:09 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647723002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647723002/300001
4 years, 10 months ago (2016-02-17 01:45:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/146626)
4 years, 10 months ago (2016-02-17 01:59:51 UTC) #39
please use gerrit instead
Brett, ptal chrome/browser/BUILD.gn in patch 15.
4 years, 10 months ago (2016-02-17 02:01:36 UTC) #41
brettw
You don't need me to review build file changes unless there's some specific question.
4 years, 10 months ago (2016-02-17 19:26:37 UTC) #42
please use gerrit instead
No specific question, only a presubmit failure because of lack of LG from an owner. ...
4 years, 10 months ago (2016-02-17 19:29:00 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647723002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647723002/300001
4 years, 10 months ago (2016-02-17 19:34:38 UTC) #46
commit-bot: I haz the power
Committed patchset #15 (id:300001)
4 years, 10 months ago (2016-02-17 19:45:53 UTC) #48
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/e59900a51f10891ee99368eda83ddec185f2b007 Cr-Commit-Position: refs/heads/master@{#375955}
4 years, 10 months ago (2016-02-17 19:48:08 UTC) #50
brettw
4 years, 10 months ago (2016-02-17 20:17:29 UTC) #51
Message was sent while issue was closed.
Ah, I think you need owner review for a bunch of files then, not just the build
file. I only glanced at this briefly, but LGTM.

Powered by Google App Engine
This is Rietveld 408576698