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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.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
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 DocumentMarkerList_h 5 #ifndef DocumentMarkerList_h
6 #define DocumentMarkerList_h 6 #define DocumentMarkerList_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/editing/markers/DocumentMarker.h" 9 #include "core/editing/markers/DocumentMarker.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 22 matching lines...) Expand all
33 33
34 virtual const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() 34 virtual const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers()
35 const = 0; 35 const = 0;
36 36
37 // Returns true if at least one marker is copied, false otherwise 37 // Returns true if at least one marker is copied, false otherwise
38 virtual bool MoveMarkers(int length, DocumentMarkerList* dst_list) = 0; 38 virtual bool MoveMarkers(int length, DocumentMarkerList* dst_list) = 0;
39 39
40 // Returns true if at least one marker is removed, false otherwise 40 // Returns true if at least one marker is removed, false otherwise
41 virtual bool RemoveMarkers(unsigned start_offset, int length) = 0; 41 virtual bool RemoveMarkers(unsigned start_offset, int length) = 0;
42 42
43 // Returns true if a marker was removed, false otherwise.
44 // TODO(rlanday): remove this method from this interface once we have a
45 // Spelling/Grammar-specific marker list impl to put this on
46 virtual bool RemoveMarkersUnderWords(const String& node_text,
47 const Vector<String>& words) = 0;
48
49 // Returns true if at least one marker is shifted or removed, false otherwise 43 // Returns true if at least one marker is shifted or removed, false otherwise
50 virtual bool ShiftMarkers(unsigned offset, 44 virtual bool ShiftMarkers(unsigned offset,
51 unsigned old_length, 45 unsigned old_length,
52 unsigned new_length) = 0; 46 unsigned new_length) = 0;
53 47
54 DEFINE_INLINE_VIRTUAL_TRACE() {} 48 DEFINE_INLINE_VIRTUAL_TRACE() {}
55 49
56 protected: 50 protected:
57 DocumentMarkerList(); 51 DocumentMarkerList();
58 52
59 private: 53 private:
60 DISALLOW_COPY_AND_ASSIGN(DocumentMarkerList); 54 DISALLOW_COPY_AND_ASSIGN(DocumentMarkerList);
61 }; 55 };
62 56
63 } // namespace blink 57 } // namespace blink
64 58
65 #endif // DocumentMarkerList_h 59 #endif // DocumentMarkerList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698