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

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

Issue 2773883003: Add CompositionMarkerList in preparation for DocumentMarkerController refactor (Closed)
Patch Set: Fix code that doesn't compile...what am I doing... Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EditingMarkerList_h
6 #define EditingMarkerList_h
7
8 #include "core/editing/markers/DocumentMarkerList.h"
9
10 namespace blink {
11
12 class DocumentMarker;
13
14 class CORE_EXPORT EditingMarkerList : public DocumentMarkerList {
15 public:
16 explicit EditingMarkerList(DocumentMarkerController*);
17
18 // DocumentMarkerList implementations
19 bool isEditingMarkerList() const final;
20
21 void clear() final;
22
23 void removeMarkers(unsigned startOffset,
24 int length,
25 bool shouldRemovePartiallyOverlappingMarkers,
26 bool* didRemoveMarker) final;
27 bool shiftMarkers(unsigned offset,
28 unsigned oldLength,
29 unsigned newLength) final;
30
31 // EditingMarkerList-specific
32 virtual void insert(DocumentMarker*);
33
34 DECLARE_VIRTUAL_TRACE();
35
36 protected:
37 void sortMarkerList();
Xiaocheng 2017/03/24 03:57:47 Please do not introduce an unused function. Inste
rlanday 2017/03/24 17:45:49 Ok
rlanday 2017/03/24 18:01:23 Oh, I know why I added this: I use it in SpellingM
38
39 bool m_markersAreSorted;
40
41 DISALLOW_COPY_AND_ASSIGN(EditingMarkerList);
42 };
43
44 DEFINE_TYPE_CASTS(EditingMarkerList,
45 DocumentMarkerList,
46 list,
47 list->isEditingMarkerList(),
48 list.isEditingMarkerList());
49
50 } // namespace blink
51
52 #endif // EditingMarkerList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698