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

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

Issue 2948133004: [MarkersIntersectingRange #2] Add DocumentMarkerController::MarkersIntersectingRange() (Closed)
Patch Set: Remove MarkersIntersectingRangeHelper() from header file Created 3 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool SetTextMatchMarkersActive(Node*, 87 bool SetTextMatchMarkersActive(Node*,
88 unsigned start_offset, 88 unsigned start_offset,
89 unsigned end_offset, 89 unsigned end_offset,
90 bool); 90 bool);
91 bool HasMarkers(Node* node) const { return markers_.Contains(node); } 91 bool HasMarkers(Node* node) const { return markers_.Contains(node); }
92 92
93 // Returns a marker of one of the specified types that includes the specified 93 // Returns a marker of one of the specified types that includes the specified
94 // Position in its interior (not at an endpoint), if one exists. 94 // Position in its interior (not at an endpoint), if one exists.
95 DocumentMarker* MarkerAtPosition(const Position&, 95 DocumentMarker* MarkerAtPosition(const Position&,
96 DocumentMarker::MarkerTypes); 96 DocumentMarker::MarkerTypes);
97 // Return all markers of the specified types whose interiors have non-empty
98 // overlap with the range [start_offset, end_offset]. Note that the range can
99 // be collapsed, in which case markers containing the offset in their
100 // interiors are returned.
101 HeapVector<std::pair<Member<Node>, Member<DocumentMarker>>>
102 MarkersIntersectingRange(const EphemeralRangeInFlatTree&,
103 DocumentMarker::MarkerTypes);
97 DocumentMarkerVector MarkersFor( 104 DocumentMarkerVector MarkersFor(
98 Node*, 105 Node*,
99 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); 106 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
100 DocumentMarkerVector Markers(); 107 DocumentMarkerVector Markers();
101 Vector<IntRect> LayoutRectsForTextMatchMarkers(); 108 Vector<IntRect> LayoutRectsForTextMatchMarkers();
102 void InvalidateRectsForAllTextMatchMarkers(); 109 void InvalidateRectsForAllTextMatchMarkers();
103 void InvalidateRectsForTextMatchMarkersInNode(const Node&); 110 void InvalidateRectsForTextMatchMarkersInNode(const Node&);
104 111
105 DECLARE_TRACE(); 112 DECLARE_TRACE();
106 113
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 const Member<const Document> document_; 147 const Member<const Document> document_;
141 }; 148 };
142 149
143 } // namespace blink 150 } // namespace blink
144 151
145 #ifndef NDEBUG 152 #ifndef NDEBUG
146 void showDocumentMarkers(const blink::DocumentMarkerController*); 153 void showDocumentMarkers(const blink::DocumentMarkerController*);
147 #endif 154 #endif
148 155
149 #endif // DocumentMarkerController_h 156 #endif // DocumentMarkerController_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698