| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const Position& end, | 67 const Position& end, |
| 68 DocumentMarker::MarkerType, | 68 DocumentMarker::MarkerType, |
| 69 const String& description = g_empty_string); | 69 const String& description = g_empty_string); |
| 70 void AddTextMatchMarker(const EphemeralRange&, DocumentMarker::MatchStatus); | 70 void AddTextMatchMarker(const EphemeralRange&, DocumentMarker::MatchStatus); |
| 71 void AddCompositionMarker(const Position& start, | 71 void AddCompositionMarker(const Position& start, |
| 72 const Position& end, | 72 const Position& end, |
| 73 Color underline_color, | 73 Color underline_color, |
| 74 bool thick, | 74 bool thick, |
| 75 Color background_color); | 75 Color background_color); |
| 76 | 76 |
| 77 void CopyMarkers(Node* src_node, | 77 void MoveMarkers(Node* src_node, int length, Node* dst_node); |
| 78 unsigned start_offset, | |
| 79 int length, | |
| 80 Node* dst_node, | |
| 81 int delta); | |
| 82 | 78 |
| 83 void PrepareForDestruction(); | 79 void PrepareForDestruction(); |
| 84 // When a marker partially overlaps with range, if | 80 // When a marker partially overlaps with range, if |
| 85 // removePartiallyOverlappingMarkers is true, we completely remove the marker. | 81 // removePartiallyOverlappingMarkers is true, we completely remove the marker. |
| 86 // If the argument is false, we will adjust the span of the marker so that it | 82 // If the argument is false, we will adjust the span of the marker so that it |
| 87 // retains the portion that is outside of the range. | 83 // retains the portion that is outside of the range. |
| 88 enum RemovePartiallyOverlappingMarkerOrNot { | 84 enum RemovePartiallyOverlappingMarkerOrNot { |
| 89 kDoNotRemovePartiallyOverlappingMarker, | 85 kDoNotRemovePartiallyOverlappingMarker, |
| 90 kRemovePartiallyOverlappingMarker | 86 kRemovePartiallyOverlappingMarker |
| 91 }; | 87 }; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 const Member<const Document> document_; | 158 const Member<const Document> document_; |
| 163 }; | 159 }; |
| 164 | 160 |
| 165 } // namespace blink | 161 } // namespace blink |
| 166 | 162 |
| 167 #ifndef NDEBUG | 163 #ifndef NDEBUG |
| 168 void showDocumentMarkers(const blink::DocumentMarkerController*); | 164 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 169 #endif | 165 #endif |
| 170 | 166 |
| 171 #endif // DocumentMarkerController_h | 167 #endif // DocumentMarkerController_h |
| OLD | NEW |