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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h

Issue 2903413003: Add tests for DocumentMarkerListEditor::ShiftMarkersContent{D,Ind}ependent (Closed)
Patch Set: Final Created 3 years, 6 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
11 namespace blink { 11 namespace blink {
12 12
13 class DocumentMarker; 13 class DocumentMarker;
14 14
15 class DocumentMarkerListEditor { 15 class CORE_EXPORT DocumentMarkerListEditor 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698