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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 MoveMarkers(Node* src_node, int length, Node* dst_node); | 77 void MoveMarkers(Node* src_node, int length, Node* dst_node); |
78 | 78 |
79 void PrepareForDestruction(); | 79 void PrepareForDestruction(); |
80 void RemoveMarkersInRange(const EphemeralRange&, DocumentMarker::MarkerTypes); | 80 void RemoveMarkersInRange(const EphemeralRange&, DocumentMarker::MarkerTypes); |
81 void RemoveMarkers( | 81 void RemoveMarkersOfTypes(DocumentMarker::MarkerTypes); |
yosin_UTC9
2017/04/21 08:22:36
Good catch! We should not use default parameter fo
| |
82 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); | |
83 void RemoveMarkers( | 82 void RemoveMarkers( |
84 Node*, | 83 Node*, |
85 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); | 84 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); |
86 void RemoveMarkers(const MarkerRemoverPredicate& should_remove_marker); | 85 void RemoveMarkers(const MarkerRemoverPredicate& should_remove_marker); |
87 void RepaintMarkers( | 86 void RepaintMarkers( |
88 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); | 87 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); |
89 // Returns true if markers within a range are found. | 88 // Returns true if markers within a range are found. |
90 bool SetMarkersActive(const EphemeralRange&, bool); | 89 bool SetMarkersActive(const EphemeralRange&, bool); |
91 // Returns true if markers within a range defined by a node, |startOffset| and | 90 // Returns true if markers within a range defined by a node, |startOffset| and |
92 // |endOffset| are found. | 91 // |endOffset| are found. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 const Member<const Document> document_; | 142 const Member<const Document> document_; |
144 }; | 143 }; |
145 | 144 |
146 } // namespace blink | 145 } // namespace blink |
147 | 146 |
148 #ifndef NDEBUG | 147 #ifndef NDEBUG |
149 void showDocumentMarkers(const blink::DocumentMarkerController*); | 148 void showDocumentMarkers(const blink::DocumentMarkerController*); |
150 #endif | 149 #endif |
151 | 150 |
152 #endif // DocumentMarkerController_h | 151 #endif // DocumentMarkerController_h |
OLD | NEW |