Chromium Code Reviews| 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 DocumentMarker* FirstMarkerIntersectingOffsetRange( | |
|
yosin_UTC9
2017/07/20 01:07:01
Can we mark |FirstMarkerIntersectingOffsetRange()|
| |
| 102 const Text&, | |
| 103 unsigned start_offset, | |
| 104 unsigned end_offset, | |
| 105 DocumentMarker::MarkerTypes); | |
| 97 DocumentMarkerVector MarkersFor( | 106 DocumentMarkerVector MarkersFor( |
| 98 Node*, | 107 Node*, |
| 99 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); | 108 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); |
| 100 DocumentMarkerVector Markers(); | 109 DocumentMarkerVector Markers(); |
| 101 Vector<IntRect> LayoutRectsForTextMatchMarkers(); | 110 Vector<IntRect> LayoutRectsForTextMatchMarkers(); |
| 102 void InvalidateRectsForAllTextMatchMarkers(); | 111 void InvalidateRectsForAllTextMatchMarkers(); |
| 103 void InvalidateRectsForTextMatchMarkersInNode(const Node&); | 112 void InvalidateRectsForTextMatchMarkersInNode(const Node&); |
| 104 | 113 |
| 105 DECLARE_TRACE(); | 114 DECLARE_TRACE(); |
| 106 | 115 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 const Member<const Document> document_; | 149 const Member<const Document> document_; |
| 141 }; | 150 }; |
| 142 | 151 |
| 143 } // namespace blink | 152 } // namespace blink |
| 144 | 153 |
| 145 #ifndef NDEBUG | 154 #ifndef NDEBUG |
| 146 void showDocumentMarkers(const blink::DocumentMarkerController*); | 155 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 147 #endif | 156 #endif |
| 148 | 157 |
| 149 #endif // DocumentMarkerController_h | 158 #endif // DocumentMarkerController_h |
| OLD | NEW |