OLD | NEW |
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 Loading... |
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 // Looks for a marker in the specified node of the specified type whose |
| 98 // interior has non-empty overlap with the range [start_offset, end_offset]. |
| 99 // If the range is collapsed, this looks for a marker containing the offset of |
| 100 // the collapsed range in its interior. |
| 101 // If such a marker exists, this method will return one of them (no guarantees |
| 102 // are provided as to which one). Otherwise, this method will return null. |
| 103 DocumentMarker* FirstMarkerIntersectingOffsetRange( |
| 104 const Text&, |
| 105 unsigned start_offset, |
| 106 unsigned end_offset, |
| 107 DocumentMarker::MarkerTypes); |
97 DocumentMarkerVector MarkersFor( | 108 DocumentMarkerVector MarkersFor( |
98 Node*, | 109 Node*, |
99 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); | 110 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); |
100 DocumentMarkerVector Markers(); | 111 DocumentMarkerVector Markers(); |
101 Vector<IntRect> LayoutRectsForTextMatchMarkers(); | 112 Vector<IntRect> LayoutRectsForTextMatchMarkers(); |
102 void InvalidateRectsForAllTextMatchMarkers(); | 113 void InvalidateRectsForAllTextMatchMarkers(); |
103 void InvalidateRectsForTextMatchMarkersInNode(const Node&); | 114 void InvalidateRectsForTextMatchMarkersInNode(const Node&); |
104 | 115 |
105 DECLARE_TRACE(); | 116 DECLARE_TRACE(); |
106 | 117 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const Member<const Document> document_; | 151 const Member<const Document> document_; |
141 }; | 152 }; |
142 | 153 |
143 } // namespace blink | 154 } // namespace blink |
144 | 155 |
145 #ifndef NDEBUG | 156 #ifndef NDEBUG |
146 void showDocumentMarkers(const blink::DocumentMarkerController*); | 157 void showDocumentMarkers(const blink::DocumentMarkerController*); |
147 #endif | 158 #endif |
148 | 159 |
149 #endif // DocumentMarkerController_h | 160 #endif // DocumentMarkerController_h |
OLD | NEW |