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

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

Issue 2773883003: Add CompositionMarkerList in preparation for DocumentMarkerController refactor (Closed)
Patch Set: Make requested changes, refactor tests Created 3 years, 9 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/EditingMarkerList.h
diff --git a/third_party/WebKit/Source/core/editing/markers/EditingMarkerList.h b/third_party/WebKit/Source/core/editing/markers/EditingMarkerList.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c9003f8b37718751110da3b29667001419c8fda
--- /dev/null
+++ b/third_party/WebKit/Source/core/editing/markers/EditingMarkerList.h
@@ -0,0 +1,44 @@
+// 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 EditingMarkerList_h
+#define EditingMarkerList_h
+
+#include "core/editing/markers/DocumentMarkerList.h"
+
+namespace blink {
+
+class DocumentMarker;
+
+class CORE_EXPORT EditingMarkerList : public DocumentMarkerList {
+ public:
+ explicit EditingMarkerList();
+
+ // DocumentMarkerList implementations
+ bool isEditingMarkerList() const final;
+
+ virtual void push_back(DocumentMarker*);
Xiaocheng 2017/03/25 00:05:35 void push_back(DM*) override/final?
+ void clear() final;
+
+ DECLARE_VIRTUAL_TRACE();
+
+ protected:
+ // TODO(rlanday): determine if/when we should sort the marker list to improve
+ // performance
+ bool markerListIsSorted() const final;
+
+ bool m_markersAreSorted;
+
+ DISALLOW_COPY_AND_ASSIGN(EditingMarkerList);
+};
+
+DEFINE_TYPE_CASTS(EditingMarkerList,
+ DocumentMarkerList,
+ list,
+ list->isEditingMarkerList(),
+ list.isEditingMarkerList());
+
+} // namespace blink
+
+#endif // EditingMarkerList_h

Powered by Google App Engine
This is Rietveld 408576698