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

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)

Created:
3 years, 8 months ago by rlanday
Modified:
3 years, 8 months ago
Reviewers:
*tkent, yosin_UTC9, Xiaocheng
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DocumentMarker::MatchStatus enum for text match markers Suggested by @yosin here: https://codereview.chromium.org/2801483002#msg20 Modify the DocumentMarker() constructor for text match markers and DocumentMarkerController::addTextMatchMarker() to take an enum for whether or not the text match is active instead of a bool. This will make it more clear in call sites what the parameter means. BUG=707867 Review-Url: https://codereview.chromium.org/2801483002 Cr-Commit-Position: refs/heads/master@{#462303} Committed: https://chromium.googlesource.com/chromium/src/+/c198feadcc54ea92134df2dc3a5f4f390fcd9493

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use string in JavaScript API #

Total comments: 2

Patch Set 3 : Respond to comments #

Patch Set 4 : Update tests #

Total comments: 5

Patch Set 5 : Split off Internals changes #

Patch Set 6 : Only use enum in consturctor and DMC::addTextMatch() #

Patch Set 7 : Rebase on renaming CLs that were landed #

Total comments: 1

Patch Set 8 : Add k prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -23 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp View 1 2 3 4 5 6 7 3 chunks +23 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/TextFinder.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 54 (35 generated)
rlanday
https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h File third_party/WebKit/Source/core/testing/Internals.h (right): https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h#newcode196 third_party/WebKit/Source/core/testing/Internals.h:196: bool isActive); Note: I didn't convert this to use ...
3 years, 8 months ago (2017-04-04 20:48:23 UTC) #6
Xiaocheng
https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h File third_party/WebKit/Source/core/testing/Internals.h (right): https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h#newcode196 third_party/WebKit/Source/core/testing/Internals.h:196: bool isActive); On 2017/04/04 at 20:48:23, rlanday wrote: > ...
3 years, 8 months ago (2017-04-04 21:11:16 UTC) #7
rlanday
On 2017/04/04 at 21:11:16, xiaochengh wrote: > https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h > File third_party/WebKit/Source/core/testing/Internals.h (right): > > https://codereview.chromium.org/2801483002/diff/1/third_party/WebKit/Source/core/testing/Internals.h#newcode196 ...
3 years, 8 months ago (2017-04-04 21:43:16 UTC) #9
Xiaocheng
https://codereview.chromium.org/2801483002/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html File third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html (right): https://codereview.chromium.org/2801483002/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html#newcode27 third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html:27: window.internals.addTextMatchMarker(range, "Active"); nit: use single quotes for JavaScript strings. ...
3 years, 8 months ago (2017-04-04 21:48:38 UTC) #11
rlanday
On 2017/04/04 at 21:48:38, xiaochengh wrote: > https://codereview.chromium.org/2801483002/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html > File third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html (right): > > https://codereview.chromium.org/2801483002/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html#newcode27 ...
3 years, 8 months ago (2017-04-04 23:08:18 UTC) #12
Xiaocheng
All layout tests calling internals.addTextMarker or internals.setMarkersActive should be modified accordingly. Please run layout tests ...
3 years, 8 months ago (2017-04-04 23:20:41 UTC) #13
rlanday
On 2017/04/04 at 23:20:41, xiaochengh wrote: > All layout tests calling internals.addTextMarker or internals.setMarkersActive should ...
3 years, 8 months ago (2017-04-05 01:17:17 UTC) #18
yosin_UTC9
On 2017/04/04 at 23:20:41, xiaochengh wrote: > All layout tests calling internals.addTextMarker or internals.setMarkersActive should ...
3 years, 8 months ago (2017-04-05 01:22:05 UTC) #19
yosin_UTC9
Please keep in mind to make patch smaller. It seems we can have 1. Introduce ...
3 years, 8 months ago (2017-04-05 01:33:37 UTC) #20
rlanday
On 2017/04/05 at 01:33:37, yosin wrote: > Please keep in mind to make patch smaller. ...
3 years, 8 months ago (2017-04-05 02:00:25 UTC) #25
Xiaocheng
lgtm
3 years, 8 months ago (2017-04-05 18:26:17 UTC) #30
rlanday
Adding tkent for third_party/WebKit/Source/core/testing/Internals.cpp and third_party/WebKit/Source/web/TextFinder.cpp
3 years, 8 months ago (2017-04-05 20:49:27 UTC) #35
tkent
https://codereview.chromium.org/2801483002/diff/120001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): https://codereview.chromium.org/2801483002/diff/120001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode137 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:137: enum class MatchStatus { Inactive, Active }; They should ...
3 years, 8 months ago (2017-04-05 22:22:32 UTC) #36
rlanday
On 2017/04/05 at 22:22:32, tkent wrote: > https://codereview.chromium.org/2801483002/diff/120001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): > > https://codereview.chromium.org/2801483002/diff/120001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode137 ...
3 years, 8 months ago (2017-04-05 23:03:43 UTC) #40
tkent
lgtm
3 years, 8 months ago (2017-04-05 23:50:43 UTC) #42
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/2801483002/140001
3 years, 8 months ago (2017-04-06 00:36:34 UTC) #46
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
3 years, 8 months ago (2017-04-06 00:36:36 UTC) #48
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/2801483002/140001
3 years, 8 months ago (2017-04-06 00:40:46 UTC) #51
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 01:01:49 UTC) #54
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c198feadcc54ea92134df2dc3a5f...

Powered by Google App Engine
This is Rietveld 408576698