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

Issue 2922233002: [ActiveSuggestionMarker #1] Introduce abstract StyleableMarker subclass of DocumentMarker (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
tkent, yosin_UTC9, Xiaocheng
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce abstract StyleableMarker subclass of DocumentMarker This CL refactors some code in CompositionMarker into a new abstract class StyleableMarker, which will contain shared logic for MarkerTypes that can be rendered with different underline color/thickness and/or background color. This is in preparation for adding two new MarkerTypes I need to support some features on Android (one for marking the range of text an open spellcheck/ suggestion menu pertains to, the other for marking ranges of text the user can open a suggestion menu for by tapping on them). BUG=715365 Review-Url: https://codereview.chromium.org/2922233002 Cr-Commit-Position: refs/heads/master@{#477221} Committed: https://chromium.googlesource.com/chromium/src/+/44d1353d9f4b134e7aee2b1d70eae0e0320b42c7

Patch Set 1 #

Total comments: 1

Patch Set 2 : DISALLOW_COPY_AND_ASSIGN() #

Total comments: 3

Patch Set 3 : Add test for IsStyleableMarker() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -48 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarker.h View 3 chunks +2 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp View 1 chunk +5 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImplTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarkerTest.cpp View 1 2 1 chunk +12 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/StyleableMarker.h View 1 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp View 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 2 chunks +4 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
rlanday
This is the first CL resulting from splitting up https://codereview.chromium.org/2919173002
3 years, 6 months ago (2017-06-05 19:09:10 UTC) #4
Xiaocheng
lgtm https://codereview.chromium.org/2922233002/diff/1/third_party/WebKit/Source/core/editing/markers/StyleableMarker.h File third_party/WebKit/Source/core/editing/markers/StyleableMarker.h (right): https://codereview.chromium.org/2922233002/diff/1/third_party/WebKit/Source/core/editing/markers/StyleableMarker.h#newcode33 third_party/WebKit/Source/core/editing/markers/StyleableMarker.h:33: }; add DISALLOW_COPY_AND_ASSIGN
3 years, 6 months ago (2017-06-05 19:21:55 UTC) #5
rlanday
On 2017/06/05 at 19:21:55, xiaochengh wrote: > lgtm > > https://codereview.chromium.org/2922233002/diff/1/third_party/WebKit/Source/core/editing/markers/StyleableMarker.h > File third_party/WebKit/Source/core/editing/markers/StyleableMarker.h (right): ...
3 years, 6 months ago (2017-06-05 20:14:38 UTC) #7
yosin_UTC9
lgtm w/ nit https://codereview.chromium.org/2922233002/diff/20001/third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp File third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp (right): https://codereview.chromium.org/2922233002/diff/20001/third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp#newcode17 third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp:17: thickness_(thickness) {} Q: Do we allow ...
3 years, 6 months ago (2017-06-06 01:18:15 UTC) #11
rlanday
https://codereview.chromium.org/2922233002/diff/20001/third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp File third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp (right): https://codereview.chromium.org/2922233002/diff/20001/third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp#newcode17 third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp:17: thickness_(thickness) {} On 2017/06/06 at 01:18:15, yosin_UTC9 wrote: > ...
3 years, 6 months ago (2017-06-06 01:42:44 UTC) #12
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/2922233002/40001
3 years, 6 months ago (2017-06-06 01:43:46 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/456240)
3 years, 6 months ago (2017-06-06 01:53:05 UTC) #17
rlanday
On 2017/06/06 at 01:53:05, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
3 years, 6 months ago (2017-06-06 02:17:09 UTC) #19
tkent
lgtm
3 years, 6 months ago (2017-06-06 06:09:35 UTC) #21
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/2922233002/40001
3 years, 6 months ago (2017-06-06 06:10:01 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 06:58:38 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/44d1353d9f4b134e7aee2b1d70ea...

Powered by Google App Engine
This is Rietveld 408576698