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

Issue 2895253003: Split general DocumentMarkerController::AddMarker() method into spelling/grammar versions (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 7 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

Split general DMC::AddMarker() method into spelling/grammar versions Right now DocumentMarker::AddMarker() appears to be usable for any marker type, when really the params it takes (start/end position and a description) are really only suitable for spelling/grammar markers. So I'm splitting it into AddSpellingMarker() and AddGrammarMarker(). After this, we'll have a 1-to-1 mapping between marker types and Add*Marker() methods. I will change these methods in a follow-up CL to take an EphemeralRange instead of two Positions. BUG=707867 Review-Url: https://codereview.chromium.org/2895253003 Cr-Commit-Position: refs/heads/master@{#474532} Committed: https://chromium.googlesource.com/chromium/src/+/43ffa71e810074eb21a15188cc408ab67039b0a8

Patch Set 1 #

Total comments: 5

Patch Set 2 : Split off InputMethodControllerTest changes, make other requested changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -24 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 2 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 1 chunk +19 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 3 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (14 generated)
rlanday
3 years, 7 months ago (2017-05-22 23:20:27 UTC) #3
Xiaocheng
lgtm
3 years, 7 months ago (2017-05-22 23:47:55 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2895253003/diff/1/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp File third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp (right): https://codereview.chromium.org/2895253003/diff/1/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp#newcode1539 third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp:1539: GetDocument().Markers().AddTextMatchMarker( Could you move IMCTest.cpp changes into another patch ...
3 years, 7 months ago (2017-05-23 09:35:04 UTC) #8
rlanday
Ok, I've split off the InputMethodControllerTest changes into another CL: https://codereview.chromium.org/2897103003 (This CL now depends ...
3 years, 7 months ago (2017-05-23 19:09:33 UTC) #11
yosin_UTC9
lgtm +tkent@ for core/testing and web/
3 years, 7 months ago (2017-05-24 09:03:14 UTC) #15
tkent
lgtm
3 years, 7 months ago (2017-05-24 09:05:52 UTC) #16
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/2895253003/20001
3 years, 7 months ago (2017-05-25 01:01:09 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 02:40:40 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/43ffa71e810074eb21a15188cc40...

Powered by Google App Engine
This is Rietveld 408576698