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 reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 // the portion that is outside of the range. | 73 // the portion that is outside of the range. |
| 74 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping Marker, RemovePartiallyOverlappingMarker }; | 74 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping Marker, RemovePartiallyOverlappingMarker }; |
| 75 void removeMarkers(const EphemeralRange&, DocumentMarker::MarkerTypes = Docu mentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePar tiallyOverlappingMarker); | 75 void removeMarkers(const EphemeralRange&, DocumentMarker::MarkerTypes = Docu mentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePar tiallyOverlappingMarker); |
| 76 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker:: MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN ot = DoNotRemovePartiallyOverlappingMarker); | 76 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker:: MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN ot = DoNotRemovePartiallyOverlappingMarker); |
| 77 | 77 |
| 78 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers( )); | 78 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers( )); |
| 79 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM arkers()); | 79 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM arkers()); |
| 80 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker); | 80 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker); |
| 81 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers ()); | 81 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers ()); |
| 82 void shiftMarkers(Node*, unsigned startOffset, int delta); | 82 void shiftMarkers(Node*, unsigned startOffset, int delta); |
| 83 void setMarkersActive(Range*, bool); | 83 bool setMarkersActive(Range*, bool); |
|
esprehn
2016/02/10 01:17:08
this needs a comment, what does the bool return me
dvadym
2016/02/10 16:06:21
Done.
| |
| 84 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; | 84 bool setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; |
| 85 bool hasMarkers(Node* node) const { return m_markers.contains(node); } | 85 bool hasMarkers(Node* node) const { return m_markers.contains(node); } |
| 86 | 86 |
| 87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType); | 87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType); |
| 88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers()); | 88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers()); |
| 89 DocumentMarkerVector markersInRange(const EphemeralRange&, DocumentMarker::M arkerTypes); | 89 DocumentMarkerVector markersInRange(const EphemeralRange&, DocumentMarker::M arkerTypes); |
| 90 DocumentMarkerVector markers(); | 90 DocumentMarkerVector markers(); |
| 91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); | 91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); |
| 92 void updateRenderedRectsForMarkers(); | 92 void updateRenderedRectsForMarkers(); |
| 93 | 93 |
| 94 DECLARE_TRACE(); | 94 DECLARE_TRACE(); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 113 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 113 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #ifndef NDEBUG | 118 #ifndef NDEBUG |
| 119 void showDocumentMarkers(const blink::DocumentMarkerController*); | 119 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 #endif // DocumentMarkerController_h | 122 #endif // DocumentMarkerController_h |
| OLD | NEW |