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

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

Issue 2871823002: [DMC #5.7] Move DocumentMarkerList::RemoveMarkersUnderWords() to SpellCheckMarkerListImpl (Closed)
Patch Set: Rebase Created 3 years, 7 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/CompositionMarkerListImpl.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 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 13 matching lines...) Expand all
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<RenderedDocumentMarker>>& GetMarkers() const final; 30 const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() const final;
31 31
32 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; 32 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final;
33 bool RemoveMarkers(unsigned start_offset, int length) final; 33 bool RemoveMarkers(unsigned start_offset, int length) final;
34 bool RemoveMarkersUnderWords(const String& node_text,
35 const Vector<String>& words) final;
36 bool ShiftMarkers(unsigned offset, 34 bool ShiftMarkers(unsigned offset,
37 unsigned old_length, 35 unsigned old_length,
38 unsigned new_length) final; 36 unsigned new_length) final;
39 37
40 DECLARE_VIRTUAL_TRACE(); 38 DECLARE_VIRTUAL_TRACE();
41 39
42 private: 40 private:
43 HeapVector<Member<RenderedDocumentMarker>> markers_; 41 HeapVector<Member<RenderedDocumentMarker>> markers_;
44 42
45 DISALLOW_COPY_AND_ASSIGN(CompositionMarkerListImpl); 43 DISALLOW_COPY_AND_ASSIGN(CompositionMarkerListImpl);
46 }; 44 };
47 45
48 } // namespace blink 46 } // namespace blink
49 47
50 #endif // CompositionMarkerListImpl_h 48 #endif // CompositionMarkerListImpl_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698