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

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

Issue 2904973003: [DMC #15] Add TextMatchMarkerListImpl::SetTextMatchMarkersActive() (Closed)
Patch Set: Remove blank lines 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
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 TextMatchMarkerListImpl_h 5 #ifndef TextMatchMarkerListImpl_h
6 #define TextMatchMarkerListImpl_h 6 #define TextMatchMarkerListImpl_h
7 7
8 #include "core/editing/markers/DocumentMarkerList.h" 8 #include "core/editing/markers/DocumentMarkerList.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 19 matching lines...) Expand all
30 30
31 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final; 31 bool MoveMarkers(int length, DocumentMarkerList* dst_list) final;
32 bool RemoveMarkers(unsigned start_offset, int length) final; 32 bool RemoveMarkers(unsigned start_offset, int length) final;
33 bool ShiftMarkers(unsigned offset, 33 bool ShiftMarkers(unsigned offset,
34 unsigned old_length, 34 unsigned old_length,
35 unsigned new_length) final; 35 unsigned new_length) final;
36 DECLARE_VIRTUAL_TRACE(); 36 DECLARE_VIRTUAL_TRACE();
37 37
38 // TextMatchMarkerListImpl-specific 38 // TextMatchMarkerListImpl-specific
39 Vector<IntRect> RenderedRects(const Node&) const; 39 Vector<IntRect> RenderedRects(const Node&) const;
40 // Returns true if markers within a range defined by |startOffset| and
41 // |endOffset| are found.
42 bool SetTextMatchMarkersActive(unsigned start_offset,
43 unsigned end_offset,
44 bool);
40 45
41 private: 46 private:
42 HeapVector<Member<DocumentMarker>> markers_; 47 HeapVector<Member<DocumentMarker>> markers_;
43 48
44 DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerListImpl); 49 DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerListImpl);
45 }; 50 };
46 51
47 DEFINE_TYPE_CASTS(TextMatchMarkerListImpl, 52 DEFINE_TYPE_CASTS(TextMatchMarkerListImpl,
48 DocumentMarkerList, 53 DocumentMarkerList,
49 list, 54 list,
50 list->MarkerType() == DocumentMarker::kTextMatch, 55 list->MarkerType() == DocumentMarker::kTextMatch,
51 list.MarkerType() == DocumentMarker::kTextMatch); 56 list.MarkerType() == DocumentMarker::kTextMatch);
52 57
53 } // namespace blink 58 } // namespace blink
54 59
55 #endif // TextMatchMarkerListImpl_h 60 #endif // TextMatchMarkerListImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698