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 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class DocumentMarker; | 13 class DocumentMarker; |
14 | 14 |
15 class DocumentMarkerListEditor { | 15 class CORE_EXPORT DocumentMarkerListEditor { |
yosin_UTC9
2017/05/29 04:49:53
nit: s/{/final {/
| |
16 public: | 16 public: |
17 using MarkerList = HeapVector<Member<DocumentMarker>>; | 17 using MarkerList = HeapVector<Member<DocumentMarker>>; |
18 | 18 |
19 static void AddMarkerWithoutMergingOverlapping(MarkerList*, DocumentMarker*); | 19 static void AddMarkerWithoutMergingOverlapping(MarkerList*, DocumentMarker*); |
20 | 20 |
21 // Returns true if a marker was moved, false otherwise. | 21 // Returns true if a marker was moved, false otherwise. |
22 static bool MoveMarkers(MarkerList* src_list, | 22 static bool MoveMarkers(MarkerList* src_list, |
23 int length, | 23 int length, |
24 DocumentMarkerList* dst_list); | 24 DocumentMarkerList* dst_list); |
25 | 25 |
(...skipping 17 matching lines...) Expand all Loading... | |
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 }; | 48 }; |
49 | 49 |
50 } // namespace blink | 50 } // namespace blink |
51 | 51 |
52 #endif // DocumentMarkerListEditor_h | 52 #endif // DocumentMarkerListEditor_h |
OLD | NEW |