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

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

Issue 2818873002: [DMC #1.9] Move DocumentMarkerListEditor to its own .h/.cpp files (Closed)
Patch Set: Remove static comparator functions from DocumentMarkerListEditor Created 3 years, 8 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/DocumentMarkerController.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
index 8214cc23da5d3f2d1135708b8da89cc4776c30be..06ca1fd2b07349e9d84343416ad38141d9621705 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -53,30 +53,6 @@ class MarkerRemoverPredicate final {
Vector<String> words_;
};
-class DocumentMarkerListEditor {
- public:
- using MarkerList = HeapVector<Member<RenderedDocumentMarker>>;
-
- static void AddMarker(MarkerList*, const DocumentMarker*);
-
- // Returns true if a marker was moved, false otherwise.
- static bool MoveMarkers(MarkerList* src_list,
- int length,
- MarkerList* dst_list);
-
- // Returns true if a marker was removed, false otherwise.
- static bool RemoveMarkers(MarkerList*, unsigned start_offset, int length);
-
- // Returns true if a marker was shifted or removed, false otherwise.
- static bool ShiftMarkers(MarkerList*,
- unsigned offset,
- unsigned old_length,
- unsigned new_length);
-
- private:
- static void MergeOverlapping(MarkerList*, RenderedDocumentMarker* to_insert);
-};
-
class CORE_EXPORT DocumentMarkerController final
: public GarbageCollected<DocumentMarkerController>,
public SynchronousMutationObserver {

Powered by Google App Engine
This is Rietveld 408576698