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 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 Loading... |
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 |
OLD | NEW |