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

Unified Diff: third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h

Issue 2868413002: [DMC #5.55] Add DocumentMarkerList::MarkerType() (Closed)
Patch Set: Fix mistake in comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h
diff --git a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h b/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h
index bd148c554746c436bdbb5c4e0cfd33f491b23bba..216b9067c5ba85987489cb559c5f1c75604764c0 100644
--- a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h
+++ b/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h
@@ -16,9 +16,11 @@ class RenderedDocumentMarker;
// specialized implementations for every MarkerType.
class GenericDocumentMarkerListImpl final : public DocumentMarkerList {
public:
- GenericDocumentMarkerListImpl() = default;
+ GenericDocumentMarkerListImpl(DocumentMarker::MarkerType);
// DocumentMarkerList implementations
+ DocumentMarker::MarkerType MarkerType() const final;
+
bool IsEmpty() const final;
void Add(DocumentMarker*) final;
@@ -37,6 +39,7 @@ class GenericDocumentMarkerListImpl final : public DocumentMarkerList {
DECLARE_TRACE();
private:
+ const DocumentMarker::MarkerType marker_type_;
HeapVector<Member<RenderedDocumentMarker>> markers_;
DISALLOW_COPY_AND_ASSIGN(GenericDocumentMarkerListImpl);

Powered by Google App Engine
This is Rietveld 408576698