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

Issue 2923033002: [ActiveSuggestionMarker #2] Add ActiveSuggestionMarker (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
CC:
aboxhall, aboxhall+watch_chromium.org, blink-reviews, blink-reviews-style_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dmazzoni, 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 ActiveSuggestionMarker This is a new type of DocumentMarker that will be used on Android to highlight a region of text that an open spellcheck/suggestion menu pertains to. For a spellcheck menu, we'll want to highlight the text in red (to match the underline), but for a suggestion menu, we'll want to highlight the text in the color of the suggestion underline (on Android, there are a handful of different colors used based on which flags are set on the corresponding SuggestionSpan). So I'm making this marker inherit from the StyleableMarker subclass I refactored CompositionMarker on top of in https://codereview.chromium.org/2922233002. This CL doesn't actually add code to paint ActiveSuggestionMarkers; I will add that in a future CL (together with layout tests). BUG=715365 Review-Url: https://codereview.chromium.org/2923033002 Cr-Commit-Position: refs/heads/master@{#477476} Committed: https://chromium.googlesource.com/chromium/src/+/cf561e1c071256c42e108ba8fd1fb71dcd1db57b

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Total comments: 3

Patch Set 3 : Add ActiveSuggestionMarkerTest, make GetType() final #

Total comments: 1

Patch Set 4 : Add TODO in AXNodeObject #

Patch Set 5 : Update comment on ActiveSuggestionMarker.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h View 1 2 3 4 1 chunk +38 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/ActiveSuggestionMarkerListImplTest.cpp View 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerTest.cpp View 1 2 1 chunk +39 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 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/StyleableMarker.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
rlanday
This is the second CL to result from splitting up https://codereview.chromium.org/2919173002 https://codereview.chromium.org/2923033002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): ...
3 years, 6 months ago (2017-06-05 19:25:05 UTC) #3
Xiaocheng
lgtm
3 years, 6 months ago (2017-06-05 19:30:21 UTC) #4
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2923033002/diff/20001/third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h File third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h (right): https://codereview.chromium.org/2923033002/diff/20001/third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h#newcode26 third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h:26: MarkerType GetType() const; nit: s/;/const final;/ ...
3 years, 6 months ago (2017-06-06 01:27:48 UTC) #9
rlanday
Updated. Still waiting for feedback from dmazzoni@ about AXNodeObject
3 years, 6 months ago (2017-06-06 01:49:33 UTC) #12
rlanday
On 2017/06/06 at 01:49:33, rlanday wrote: > Updated. Still waiting for feedback from dmazzoni@ about ...
3 years, 6 months ago (2017-06-06 04:39:10 UTC) #15
dmazzoni
https://codereview.chromium.org/2923033002/diff/40001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/2923033002/diff/40001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode1417 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:1417: case DocumentMarker::kActiveSuggestion: Copying from the other changelist. It sounds ...
3 years, 6 months ago (2017-06-06 15:27:52 UTC) #16
rlanday
On 2017/06/06 at 15:27:52, dmazzoni wrote: > If you'd prefer to do this in a ...
3 years, 6 months ago (2017-06-06 19:08:26 UTC) #17
rlanday
I've moved kActiveSuggestion to the "not handled" section of the switch statement in AXNodeObject::Markers() and ...
3 years, 6 months ago (2017-06-06 19:15:35 UTC) #20
dmazzoni
lgtm
3 years, 6 months ago (2017-06-06 19:44:57 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/2923033002/60001
3 years, 6 months ago (2017-06-06 19:49:10 UTC) #24
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/2923033002/80001
3 years, 6 months ago (2017-06-06 21:21:30 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 00:15:54 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cf561e1c071256c42e108ba8fd1f...

Powered by Google App Engine
This is Rietveld 408576698