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 ActiveSuggestionMarkerListImpl_h | 5 #ifndef ActiveSuggestionMarkerListImpl_h |
6 #define ActiveSuggestionMarkerListImpl_h | 6 #define ActiveSuggestionMarkerListImpl_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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // DocumentMarkerList implementations | 23 // DocumentMarkerList implementations |
24 DocumentMarker::MarkerType MarkerType() const final; | 24 DocumentMarker::MarkerType MarkerType() const final; |
25 | 25 |
26 bool IsEmpty() const final; | 26 bool IsEmpty() const final; |
27 | 27 |
28 void Add(DocumentMarker*) final; | 28 void Add(DocumentMarker*) final; |
29 void Clear() final; | 29 void Clear() final; |
30 | 30 |
31 const HeapVector<Member<DocumentMarker>>& GetMarkers() const final; | 31 const HeapVector<Member<DocumentMarker>>& GetMarkers() const final; |
| 32 HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( |
| 33 unsigned start_offset, |
| 34 unsigned end_offset) const final; |
32 | 35 |
33 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; | 36 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; |
34 bool RemoveMarkers(unsigned start_offset, int length) final; | 37 bool RemoveMarkers(unsigned start_offset, int length) final; |
35 bool ShiftMarkers(unsigned offset, | 38 bool ShiftMarkers(unsigned offset, |
36 unsigned old_length, | 39 unsigned old_length, |
37 unsigned new_length) final; | 40 unsigned new_length) final; |
38 | 41 |
39 DECLARE_VIRTUAL_TRACE(); | 42 DECLARE_VIRTUAL_TRACE(); |
40 | 43 |
41 private: | 44 private: |
42 HeapVector<Member<DocumentMarker>> markers_; | 45 HeapVector<Member<DocumentMarker>> markers_; |
43 | 46 |
44 DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarkerListImpl); | 47 DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarkerListImpl); |
45 }; | 48 }; |
46 | 49 |
47 } // namespace blink | 50 } // namespace blink |
48 | 51 |
49 #endif // ActiveSuggestionMarkerListImpl_h | 52 #endif // ActiveSuggestionMarkerListImpl_h |
OLD | NEW |