| 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..6b478c7cc7df9d6aad3fe18ecfe74e6af7c2b564
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/EditingMarkerList.h
|
| @@ -0,0 +1,48 @@
|
| +// 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 EditingMarkerList : public DocumentMarkerList {
|
| + public:
|
| + explicit EditingMarkerList(DocumentMarkerController*);
|
| +
|
| + // DocumentMarkerList implementations
|
| + void clear() final;
|
| +
|
| + bool copyMarkers(unsigned startOffset,
|
| + int length,
|
| + Node* dstNode,
|
| + int delta) const final;
|
| + void removeMarkers(unsigned startOffset,
|
| + int length,
|
| + bool shouldRemovePartiallyOverlappingMarkers,
|
| + bool* didRemoveMarker) final;
|
| + bool shiftMarkers(unsigned offset,
|
| + unsigned oldLength,
|
| + unsigned newLength) final;
|
| +
|
| + // EditingMarkerList-specific
|
| + virtual void insert(DocumentMarker*);
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + protected:
|
| + void sortMarkerList();
|
| +
|
| + bool m_markersAreSorted;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EditingMarkerList);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // EditingMarkerList_h
|
|
|