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