OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GenericDocumentMarkerListImpl_h | 5 #ifndef GenericDocumentMarkerListImpl_h |
6 #define GenericDocumentMarkerListImpl_h | 6 #define GenericDocumentMarkerListImpl_h |
7 | 7 |
8 #include "core/editing/markers/DocumentMarkerList.h" | 8 #include "core/editing/markers/DocumentMarkerList.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 bool IsEmpty() const final; | 24 bool IsEmpty() const final; |
25 | 25 |
26 void Add(DocumentMarker*) final; | 26 void Add(DocumentMarker*) final; |
27 void Clear() final; | 27 void Clear() final; |
28 | 28 |
29 const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() const final; | 29 const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() const final; |
30 | 30 |
31 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; | 31 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; |
32 bool RemoveMarkers(unsigned start_offset, int length) final; | 32 bool RemoveMarkers(unsigned start_offset, int length) final; |
33 bool RemoveMarkersUnderWords(const String& node_text, | |
34 const Vector<String>& words) final; | |
35 bool ShiftMarkers(unsigned offset, | 33 bool ShiftMarkers(unsigned offset, |
36 unsigned old_length, | 34 unsigned old_length, |
37 unsigned new_length) final; | 35 unsigned new_length) final; |
38 | 36 |
39 DECLARE_TRACE(); | 37 DECLARE_TRACE(); |
40 | 38 |
41 private: | 39 private: |
42 DocumentMarker::MarkerType marker_type_; | 40 DocumentMarker::MarkerType marker_type_; |
43 HeapVector<Member<RenderedDocumentMarker>> markers_; | 41 HeapVector<Member<RenderedDocumentMarker>> markers_; |
44 | 42 |
45 DISALLOW_COPY_AND_ASSIGN(GenericDocumentMarkerListImpl); | 43 DISALLOW_COPY_AND_ASSIGN(GenericDocumentMarkerListImpl); |
46 }; | 44 }; |
47 | 45 |
48 } // namespace blink | 46 } // namespace blink |
49 | 47 |
50 #endif // GenericDocumentMarkerListImpl_h | 48 #endif // GenericDocumentMarkerListImpl_h |
OLD | NEW |