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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.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 DocumentMarkerListEditor_h 5 #ifndef DocumentMarkerListEditor_h
6 #define DocumentMarkerListEditor_h 6 #define DocumentMarkerListEditor_h
7 7
8 #include "core/editing/markers/DocumentMarkerList.h" 8 #include "core/editing/markers/DocumentMarkerList.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
(...skipping 10 matching lines...) Expand all
21 const DocumentMarker*); 21 const DocumentMarker*);
22 22
23 // Returns true if a marker was moved, false otherwise. 23 // Returns true if a marker was moved, false otherwise.
24 static bool MoveMarkers(MarkerList* src_list, 24 static bool MoveMarkers(MarkerList* src_list,
25 int length, 25 int length,
26 DocumentMarkerList* dst_list); 26 DocumentMarkerList* dst_list);
27 27
28 // Returns true if a marker was removed, false otherwise. 28 // Returns true if a marker was removed, false otherwise.
29 static bool RemoveMarkers(MarkerList*, unsigned start_offset, int length); 29 static bool RemoveMarkers(MarkerList*, unsigned start_offset, int length);
30 30
31 // Returns true if a marker was removed, false otherwise.
32 static bool RemoveMarkersUnderWords(MarkerList*,
33 const String& node_text,
34 const Vector<String>& words);
35
36 // Returns true if a marker was shifted or removed, false otherwise. 31 // Returns true if a marker was shifted or removed, false otherwise.
37 static bool ShiftMarkers(MarkerList*, 32 static bool ShiftMarkers(MarkerList*,
38 unsigned offset, 33 unsigned offset,
39 unsigned old_length, 34 unsigned old_length,
40 unsigned new_length); 35 unsigned new_length);
41 }; 36 };
42 37
43 } // namespace blink 38 } // namespace blink
44 39
45 #endif // DocumentMarkerListEditor_h 40 #endif // DocumentMarkerListEditor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698