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

Issue 2919173002: Add DocumentMarker::kActiveSuggestion MarkerType (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dmazzoni, dmazzoni+watch_chromium.org, dshwang, dougt+watch_chromium.org, dtseng+watch_chromium.org, haraken, je_julie, nektar+watch_chromium.org, nektarios, yuzo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DocumentMarker::kActiveSuggestion MarkerType This is a marker type I need to implement the Android spellcheck/suggestion menu. When a misspelling or suggestion region is tapped, I want to highlight the text the spellcheck or suggestion menu applies to. This is very similar in functionality to composition markers, but I can't reuse that marker type because we can have a composition underline active at the same time as a highlighted suggestion region (and then we'd have no way of clearing one but not the other). I'm refactoring most of CompositionMarker's functionality into a base class, MarkerWithFormatting, that ActiveSuggestionMarker also inherits from. BUG=672259, 715365 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase on master #

Patch Set 3 : Fix build errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -39 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 3 chunks +7 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h View 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.cpp View 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.h View 1 chunk +49 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.cpp View 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerTest.cpp View 1 2 1 chunk +41 lines, -0 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/CompositionMarkerTest.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 5 chunks +20 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/editing/markers/MarkerWithFormatting.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/MarkerWithFormatting.cpp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 2 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
rlanday
One potential issue with this CL is that it's not really self-contained; adding this MarkerType ...
3 years, 6 months ago (2017-06-02 22:42:24 UTC) #6
Xiaocheng
No more comments other than the name of the base class. "Format" reminds me of ...
3 years, 6 months ago (2017-06-03 02:48:19 UTC) #17
yosin_UTC9
Could you split this patch into - introduce MarkerWithFormatting + CompositionMarker; no behavior changes - ...
3 years, 6 months ago (2017-06-05 03:28:00 UTC) #18
rlanday
On 2017/06/05 at 03:28:00, yosin wrote: > Could you split this patch into > - ...
3 years, 6 months ago (2017-06-05 03:29:52 UTC) #19
yosin_UTC9
On 2017/06/05 at 03:29:52, rlanday wrote: > On 2017/06/05 at 03:28:00, yosin wrote: > > ...
3 years, 6 months ago (2017-06-05 03:37:43 UTC) #20
dmazzoni
It sounds like this marker type could be useful for accessibility. Could you search the ...
3 years, 6 months ago (2017-06-06 02:51:30 UTC) #22
rlanday
3 years, 6 months ago (2017-06-06 04:40:08 UTC) #23
Message was sent while issue was closed.
I split this CL up into:

1. Introduce abstract StyleableMarker subclass of DocumentMarker
https://codereview.chromium.org/2922233002

2. Add ActiveSuggestionMarker
https://codereview.chromium.org/2923033002

3. Add painting for ActiveSuggestionMarker
https://codereview.chromium.org/2925543003

Powered by Google App Engine
This is Rietveld 408576698