OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EditingMarkerList_h |
| 6 #define EditingMarkerList_h |
| 7 |
| 8 #include "core/editing/markers/DocumentMarkerList.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class DocumentMarker; |
| 13 |
| 14 class EditingMarkerList : public DocumentMarkerList { |
| 15 public: |
| 16 explicit EditingMarkerList(DocumentMarkerController*); |
| 17 |
| 18 // DocumentMarkerList implementations |
| 19 void clear() final; |
| 20 |
| 21 bool copyMarkers(unsigned startOffset, |
| 22 int length, |
| 23 Node* dstNode, |
| 24 int delta) const final; |
| 25 void removeMarkers(unsigned startOffset, |
| 26 int length, |
| 27 bool shouldRemovePartiallyOverlappingMarkers, |
| 28 bool* didRemoveMarker) final; |
| 29 bool shiftMarkers(unsigned offset, |
| 30 unsigned oldLength, |
| 31 unsigned newLength) final; |
| 32 |
| 33 // EditingMarkerList-specific |
| 34 virtual void insert(DocumentMarker*); |
| 35 |
| 36 DECLARE_VIRTUAL_TRACE(); |
| 37 |
| 38 protected: |
| 39 void sortMarkerList(); |
| 40 |
| 41 bool m_markersAreSorted; |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(EditingMarkerList); |
| 44 }; |
| 45 |
| 46 } // namespace blink |
| 47 |
| 48 #endif // EditingMarkerList_h |
OLD | NEW |