Chromium Code Reviews| 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 27 matching lines...) Expand all Loading... | |
| 38 static bool ShiftMarkersContentDependent(MarkerList*, | 38 static bool ShiftMarkersContentDependent(MarkerList*, |
| 39 unsigned offset, | 39 unsigned offset, |
| 40 unsigned old_length, | 40 unsigned old_length, |
| 41 unsigned new_length); | 41 unsigned new_length); |
| 42 | 42 |
| 43 // Returns true if a marker was shifted or removed, false otherwise. | 43 // Returns true if a marker was shifted or removed, false otherwise. |
| 44 static bool ShiftMarkersContentIndependent(MarkerList*, | 44 static bool ShiftMarkersContentIndependent(MarkerList*, |
| 45 unsigned offset, | 45 unsigned offset, |
| 46 unsigned old_length, | 46 unsigned old_length, |
| 47 unsigned new_length); | 47 unsigned new_length); |
| 48 | |
| 49 static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( | |
|
rlanday
2017/06/22 01:59:37
This isn't actually an editing method, but I wasn'
yosin_UTC9
2017/06/22 02:28:20
I think "Editor" is better than "Utils", actually
Xiaocheng
2017/06/22 03:06:06
I'm a little skeptical about this function returni
| |
| 50 const MarkerList&, | |
| 51 unsigned start_offset, | |
| 52 unsigned end_offset); | |
| 48 }; | 53 }; |
| 49 | 54 |
| 50 } // namespace blink | 55 } // namespace blink |
| 51 | 56 |
| 52 #endif // DocumentMarkerListEditor_h | 57 #endif // DocumentMarkerListEditor_h |
| OLD | NEW |