Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.h

Issue 2982313002: [MarkersIntersectingRange #2.05] Add DocumentMarkerList::FirstMarkerIntersectingRange() (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698