DescriptionAdd TextMatchMarkerList in preparation for DocumentMarkerController refactor
I have this patch committed locally on top of the patch that adds
SpellCheckMarkerList:
https://codereview.chromium.org/2770413003
although I'm not sure there are any actual dependencies on that. This marker
list is a little more involved than the others because I'm introducing a
subclass of DocumentMarker called TextMatchMarker to hold the rendered-rect
information that TextMatch markers need. Currently this information is stored in
RenderedDocumentMarker, which I'm actually leaving in place in this patch since
we're not switching DocumentMarkerController over to use the new lists yet. So
that code is still creating TextMatch markers as DocumentMarkers directly (not
TextMatchMarkers) and calling RenderedDocumentMarker::create() to get a
RenderedDocumentMarker.
To make my TextMatchMarker subclass work properly, I had to make
DocumentMarker's copy constructor protected and force callers to use a new
clone() method. This required some small changes to DocumentMarkerController.
Right now we support having different data on different types of DocumentMarkers
by having different "DocumentMarkerDetails" subclasses we attach to them; we may
want to rewrite DocumentMarker at some point so the other markers are subclasses
themselves like TextMatchMarker is in this CL.
BUG=707867
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Remove unnecessary TextMatchMarker constructor #
Total comments: 4
Patch Set 4 : Make requested changes #
Total comments: 2
Patch Set 5 : Make at() return TextMatchMarker* #Patch Set 6 : Remove "explicit" #
Depends on Patchset: Messages
Total messages: 29 (21 generated)
|