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 DocumentMarker* FirstMarkerIntersectingRange(unsigned start_offset, |
| 33 unsigned end_offset) const final; |
32 HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( | 34 HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( |
33 unsigned start_offset, | 35 unsigned start_offset, |
34 unsigned end_offset) const final; | 36 unsigned end_offset) const final; |
35 | 37 |
36 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; | 38 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; |
37 bool RemoveMarkers(unsigned start_offset, int length) final; | 39 bool RemoveMarkers(unsigned start_offset, int length) final; |
38 bool ShiftMarkers(unsigned offset, | 40 bool ShiftMarkers(unsigned offset, |
39 unsigned old_length, | 41 unsigned old_length, |
40 unsigned new_length) final; | 42 unsigned new_length) final; |
41 | 43 |
42 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
43 | 45 |
44 private: | 46 private: |
45 HeapVector<Member<DocumentMarker>> markers_; | 47 HeapVector<Member<DocumentMarker>> markers_; |
46 | 48 |
47 DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarkerListImpl); | 49 DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarkerListImpl); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace blink | 52 } // namespace blink |
51 | 53 |
52 #endif // ActiveSuggestionMarkerListImpl_h | 54 #endif // ActiveSuggestionMarkerListImpl_h |
OLD | NEW |