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

Issue 2911723002: [DMC #24] Add SpellingMarker and GrammarMarker (subclasses of DocumentMarker) (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
tkent, yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, kinuko+watch, timvolodine, Xiaocheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SpellingMarker and GrammarMarker (subclasses of DocumentMarker) In https://codereview.chromium.org/2904093002, I'm eliminating the DocumentMarkerDetails subclass for TextMatchMarker in favor of storing the TextMatchMarker-specific data directly on TextMatchMarker. In https://codereview.chromium.org/2908643002, I'm creaing a similar subclass for CompositionMarker. In this CL, I'm doing the same for SpellingMarker and GrammarMarker, which means we can now eliminate DocumentMarkerDetails. In a follow-up CL, I will make MarkerType() virtual so we won't have to store the MarkerType as a field in DocumentMarker. BUG=707867 Review-Url: https://codereview.chromium.org/2911723002 Cr-Commit-Position: refs/heads/master@{#476419} Committed: https://chromium.googlesource.com/chromium/src/+/45ab0de82123f81a41e7af931ba30e180532066f

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove declaration for DocumentMarker constructor being removed #

Total comments: 6

Patch Set 4 : Rebase, respond to comments #

Total comments: 9

Patch Set 5 : Respond to comments #

Total comments: 2

Patch Set 6 : Add IsSpellCheckMarker() tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -100 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.h View 1 2 3 4 chunks +4 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp View 1 2 3 4 2 chunks +2 lines, -50 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 2 chunks +8 lines, -14 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/GrammarMarker.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/GrammarMarkerTest.cpp View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.cpp View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/SpellingMarker.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/SpellingMarker.cpp View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/SpellingMarkerListImplTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/SpellingMarkerTest.cpp View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (26 generated)
rlanday
3 years, 7 months ago (2017-05-26 20:13:48 UTC) #3
yosin_UTC9
https://codereview.chromium.org/2911723002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp (right): https://codereview.chromium.org/2911723002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp#newcode37 third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp:37: DocumentMarker::~DocumentMarker() {} nit: s/{}/ = default;/ https://codereview.chromium.org/2911723002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp#newcode42 third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp:42: : ...
3 years, 6 months ago (2017-05-29 05:13:48 UTC) #15
rlanday
Updated
3 years, 6 months ago (2017-05-31 20:59:09 UTC) #17
Xiaocheng
https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp (right): https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp#newcode43 third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp:43: DCHECK_LT(start_offset_, end_offset_); Redundant change. https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h File third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h (right): https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h#newcode14 ...
3 years, 6 months ago (2017-05-31 22:17:16 UTC) #21
yosin_UTC9
https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/GrammarMarker.h File third_party/WebKit/Source/core/editing/markers/GrammarMarker.h (right): https://codereview.chromium.org/2911723002/diff/60001/third_party/WebKit/Source/core/editing/markers/GrammarMarker.h#newcode12 third_party/WebKit/Source/core/editing/markers/GrammarMarker.h:12: class CORE_EXPORT GrammarMarker final : public SpellCheckMarker { Please ...
3 years, 6 months ago (2017-06-01 03:29:12 UTC) #22
rlanday
Updated
3 years, 6 months ago (2017-06-01 05:00:42 UTC) #24
yosin_UTC9
lgtm +tkent@ for web/ContextMenuClientImpl.cpp https://codereview.chromium.org/2911723002/diff/80001/third_party/WebKit/Source/core/editing/markers/GrammarMarkerTest.cpp File third_party/WebKit/Source/core/editing/markers/GrammarMarkerTest.cpp (right): https://codereview.chromium.org/2911723002/diff/80001/third_party/WebKit/Source/core/editing/markers/GrammarMarkerTest.cpp#newcode15 third_party/WebKit/Source/core/editing/markers/GrammarMarkerTest.cpp:15: TEST_F(GrammarMarkerTest, MarkerType) { Could you ...
3 years, 6 months ago (2017-06-01 05:45:40 UTC) #27
tkent
> +tkent@ for web/ContextMenuClientImpl.cpp lgtm
3 years, 6 months ago (2017-06-01 05:50:24 UTC) #28
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/2911723002/100001
3 years, 6 months ago (2017-06-01 18:11:53 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 20:33:10 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/45ab0de82123f81a41e7af931ba3...

Powered by Google App Engine
This is Rietveld 408576698