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

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

Issue 2820633002: [DMC #2] Add DocumentMarkerList interface and GenericDocumentMarkerListImpl (Closed)
Patch Set: Add TODO Created 3 years, 7 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698