| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 WTF_MAKE_NONCOPYABLE(DocumentMarkerController); WTF_MAKE_FAST_ALLOCATED; | 45 WTF_MAKE_NONCOPYABLE(DocumentMarkerController); WTF_MAKE_FAST_ALLOCATED; |
| 46 public: | 46 public: |
| 47 | 47 |
| 48 DocumentMarkerController(); | 48 DocumentMarkerController(); |
| 49 ~DocumentMarkerController(); | 49 ~DocumentMarkerController(); |
| 50 | 50 |
| 51 void clear(); | 51 void clear(); |
| 52 void addMarker(Range*, DocumentMarker::MarkerType); | 52 void addMarker(Range*, DocumentMarker::MarkerType); |
| 53 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
); | 53 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
); |
| 54 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
, uint32_t hash); | 54 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
, uint32_t hash); |
| 55 void addMarkerToNode(Node*, unsigned startOffset, unsigned length, DocumentM
arker::MarkerType); | |
| 56 void addMarkerToNode(Node*, unsigned startOffset, unsigned length, DocumentM
arker::MarkerType, PassRefPtr<DocumentMarkerDetails>); | |
| 57 void addTextMatchMarker(const Range*, bool activeMatch); | 55 void addTextMatchMarker(const Range*, bool activeMatch); |
| 58 | 56 |
| 59 void copyMarkers(Node* srcNode, unsigned startOffset, int length, Node* dstN
ode, int delta); | 57 void copyMarkers(Node* srcNode, unsigned startOffset, int length, Node* dstN
ode, int delta); |
| 60 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); | 58 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); |
| 61 | 59 |
| 62 void prepareForDestruction(); | 60 void prepareForDestruction(); |
| 63 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely | 61 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely |
| 64 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains | 62 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains |
| 65 // the portion that is outside of the range. | 63 // the portion that is outside of the range. |
| 66 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; | 64 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 98 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 101 }; | 99 }; |
| 102 | 100 |
| 103 } // namespace WebCore | 101 } // namespace WebCore |
| 104 | 102 |
| 105 #ifndef NDEBUG | 103 #ifndef NDEBUG |
| 106 void showDocumentMarkers(const WebCore::DocumentMarkerController*); | 104 void showDocumentMarkers(const WebCore::DocumentMarkerController*); |
| 107 #endif | 105 #endif |
| 108 | 106 |
| 109 #endif // DocumentMarkerController_h | 107 #endif // DocumentMarkerController_h |
| OLD | NEW |