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

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

Issue 2836183002: [DMC #6] Add TextMatchMarkerListImpl (Closed)
Patch Set: final 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
deleted file mode 100644
index 4f7cad205a8ca99b2ea76c9443b513d565f48630..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef GenericDocumentMarkerListImpl_h
-#define GenericDocumentMarkerListImpl_h
-
-#include "core/editing/markers/DocumentMarkerList.h"
-
-namespace blink {
-
-class RenderedDocumentMarker;
-
-// Temporary implementation of DocumentMarkerList that can handle
-// DocumentMarkers of all MarkerTypes. This will be removed once we have
-// specialized implementations for every MarkerType.
-class GenericDocumentMarkerListImpl final : public DocumentMarkerList {
- public:
- GenericDocumentMarkerListImpl(DocumentMarker::MarkerType);
-
- // DocumentMarkerList implementations
- DocumentMarker::MarkerType MarkerType() const final;
-
- bool IsEmpty() const final;
-
- void Add(DocumentMarker*) final;
- void Clear() final;
-
- const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() const final;
-
- bool MoveMarkers(int length, DocumentMarkerList* dst_list) final;
- bool RemoveMarkers(unsigned start_offset, int length) final;
- bool ShiftMarkers(unsigned offset,
- unsigned old_length,
- unsigned new_length) final;
-
- DECLARE_TRACE();
-
- private:
- const DocumentMarker::MarkerType marker_type_;
- HeapVector<Member<RenderedDocumentMarker>> markers_;
-
- DISALLOW_COPY_AND_ASSIGN(GenericDocumentMarkerListImpl);
-};
-
-} // namespace blink
-
-#endif // GenericDocumentMarkerListImpl_h

Powered by Google App Engine
This is Rietveld 408576698