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

Issue 2792233003: Split SpellCheckPanel off SpellCheckProvider (Closed)

Created:
3 years, 8 months ago by Xiaocheng
Modified:
3 years, 8 months ago
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split SpellCheckPanel off SpellCheckProvider This is Patch 3 of 6 for making SpellCheckProvider a RenderFrameObserver, so that spellcheck can work in OOPIF. Full design: https://goo.gl/VfCENk This patch splits SpellCheckProvider into two classes: functions related to spelling panel are moved to a new class SpellCheckPanel, and the remaining functions remain in SpellCheckProvider. This patch is a preparation for changing SpellCheckProvider into a RenderFrameObserver. BUG=638361 Review-Url: https://codereview.chromium.org/2792233003 Cr-Commit-Position: refs/heads/master@{#462335} Committed: https://chromium.googlesource.com/chromium/src/+/dd47f6d8f5b234da6ec4bf952d44ff73c01bcc36

Patch Set 1 #

Patch Set 2 : Tue Apr 4 15:05:22 PDT 2017 #

Total comments: 9

Patch Set 3 : Wed Apr 5 11:05:41 PDT 2017 #

Patch Set 4 : Fix compile error #

Patch Set 5 : Fix further compile error #

Total comments: 11

Patch Set 6 : Wed Apr 5 15:14:11 PDT 2017 #

Patch Set 7 : Remove histograms.xml from patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -58 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/spellcheck/renderer/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/spellcheck/renderer/spellcheck_panel.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A components/spellcheck/renderer/spellcheck_panel.cc View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider.h View 5 chunks +1 line, -16 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider.cc View 1 6 chunks +0 lines, -42 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 42 (24 generated)
Xiaocheng
PTAL. One UMA is moved from spellcheck_provider.cc to spellcheck_panel.cc, and triggers a presubmit warning that ...
3 years, 8 months ago (2017-04-04 22:16:49 UTC) #3
please use gerrit instead
https://codereview.chromium.org/2792233003/diff/20001/components/spellcheck/renderer/spellcheck_panel.cc File components/spellcheck/renderer/spellcheck_panel.cc (right): https://codereview.chromium.org/2792233003/diff/20001/components/spellcheck/renderer/spellcheck_panel.cc#newcode27 components/spellcheck/renderer/spellcheck_panel.cc:27: UMA_HISTOGRAM_BOOLEAN("SpellCheck.api.showUI", show); On 2017/04/04 22:16:48, Xiaocheng wrote: > Presubmit ...
3 years, 8 months ago (2017-04-05 15:17:40 UTC) #4
Xiaocheng
+isherman +thestig Updated. PTAL. https://codereview.chromium.org/2792233003/diff/20001/components/spellcheck/renderer/spellcheck_panel.cc File components/spellcheck/renderer/spellcheck_panel.cc (right): https://codereview.chromium.org/2792233003/diff/20001/components/spellcheck/renderer/spellcheck_panel.cc#newcode27 components/spellcheck/renderer/spellcheck_panel.cc:27: UMA_HISTOGRAM_BOOLEAN("SpellCheck.api.showUI", show); On 2017/04/05 at ...
3 years, 8 months ago (2017-04-05 18:13:33 UTC) #8
please use gerrit instead
lgtm
3 years, 8 months ago (2017-04-05 18:19:16 UTC) #10
Lei Zhang
lgtm
3 years, 8 months ago (2017-04-05 18:26:02 UTC) #11
groby-ooo-7-16
Thanks for tackling - LGTM (And hopefully, the #ifdef's will be removed soon?) https://codereview.chromium.org/2792233003/diff/80001/chrome/renderer/chrome_content_renderer_client.cc File ...
3 years, 8 months ago (2017-04-05 21:19:54 UTC) #22
Ilya Sherman
https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml#newcode67834 tools/metrics/histograms/histograms.xml:67834: +<histogram name="SpellCheck.api.showUI" enum="BooleanEnabled"> nit: (Just within this file) please ...
3 years, 8 months ago (2017-04-05 21:43:54 UTC) #23
Xiaocheng
Thanks for reviewing! https://codereview.chromium.org/2792233003/diff/80001/components/spellcheck/renderer/spellcheck_panel.cc File components/spellcheck/renderer/spellcheck_panel.cc (right): https://codereview.chromium.org/2792233003/diff/80001/components/spellcheck/renderer/spellcheck_panel.cc#newcode19 components/spellcheck/renderer/spellcheck_panel.cc:19: if (render_view) // NULL in unit ...
3 years, 8 months ago (2017-04-05 22:17:48 UTC) #24
Ilya Sherman
https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml#newcode67838 tools/metrics/histograms/histograms.xml:67838: + The number of times the platform spelling UI ...
3 years, 8 months ago (2017-04-05 22:54:07 UTC) #25
Xiaocheng
On 2017/04/05 at 22:54:07, isherman wrote: > https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/2792233003/diff/80001/tools/metrics/histograms/histograms.xml#newcode67838 ...
3 years, 8 months ago (2017-04-05 23:01:12 UTC) #26
Ilya Sherman
On 2017/04/05 23:01:12, Xiaocheng wrote: > On 2017/04/05 at 22:54:07, isherman wrote: > > > ...
3 years, 8 months ago (2017-04-05 23:03:49 UTC) #27
Xiaocheng
On 2017/04/05 at 23:03:49, isherman wrote: > On 2017/04/05 23:01:12, Xiaocheng wrote: > > On ...
3 years, 8 months ago (2017-04-05 23:14:37 UTC) #28
Ilya Sherman
On 2017/04/05 23:14:37, Xiaocheng wrote: > On 2017/04/05 at 23:03:49, isherman wrote: > > On ...
3 years, 8 months ago (2017-04-05 23:18:10 UTC) #29
Xiaocheng
Updated with histograms.xml removed from patch.
3 years, 8 months ago (2017-04-05 23:27:36 UTC) #32
Ilya Sherman
On 2017/04/05 23:27:36, Xiaocheng wrote: > Updated with histograms.xml removed from patch. Thanks. I believe ...
3 years, 8 months ago (2017-04-05 23:48:40 UTC) #33
Xiaocheng
Thanks for all comments!
3 years, 8 months ago (2017-04-06 02:47:16 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2792233003/120001
3 years, 8 months ago (2017-04-06 02:47:39 UTC) #39
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 02:52:43 UTC) #42
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/dd47f6d8f5b234da6ec4bf952d44...

Powered by Google App Engine
This is Rietveld 408576698