OLD | NEW |
---|---|
(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 GenericDocumentMarkerListImpl_h | |
6 #define GenericDocumentMarkerListImpl_h | |
7 | |
8 #include "core/editing/markers/DocumentMarkerList.h" | |
9 | |
10 namespace blink { | |
11 | |
12 class RenderedDocumentMarker; | |
13 | |
14 class GenericDocumentMarkerListImpl : public DocumentMarkerList { | |
yosin_UTC9
2017/04/25 08:20:59
- Could you mark GenericDocumentMarkerListImpl as
| |
15 public: | |
16 GenericDocumentMarkerListImpl() = default; | |
17 | |
18 bool IsEmpty() const final; | |
yosin_UTC9
2017/04/25 08:20:59
Could you add comment like below to indicate follo
| |
19 | |
20 void Add(DocumentMarker*) final; | |
21 void Clear() final; | |
22 | |
23 const HeapVector<Member<RenderedDocumentMarker>>& GetMarkers() const final; | |
24 | |
25 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; | |
26 bool RemoveMarkers(unsigned start_offset, int length) final; | |
27 bool RemoveMarkersUnderWords(const String& node_text, | |
28 const Vector<String>& words) final; | |
29 bool ShiftMarkers(unsigned offset, | |
30 unsigned old_length, | |
31 unsigned new_length) final; | |
32 | |
33 DECLARE_TRACE(); | |
34 | |
35 private: | |
36 HeapVector<Member<RenderedDocumentMarker>> markers_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(GenericDocumentMarkerListImpl); | |
39 }; | |
40 | |
41 } // namespace blink | |
42 | |
43 #endif // GenericDocumentMarkerListImpl_h | |
OLD | NEW |