Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)
Patch Set: Add k prefix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 USING_GARBAGE_COLLECTED_MIXIN(DocumentMarkerController); 59 USING_GARBAGE_COLLECTED_MIXIN(DocumentMarkerController);
60 60
61 public: 61 public:
62 explicit DocumentMarkerController(Document&); 62 explicit DocumentMarkerController(Document&);
63 63
64 void clear(); 64 void clear();
65 void addMarker(const Position& start, 65 void addMarker(const Position& start,
66 const Position& end, 66 const Position& end,
67 DocumentMarker::MarkerType, 67 DocumentMarker::MarkerType,
68 const String& description = emptyString); 68 const String& description = emptyString);
69 void addTextMatchMarker(const EphemeralRange&, bool activeMatch); 69 void addTextMatchMarker(const EphemeralRange&, DocumentMarker::MatchStatus);
70 void addCompositionMarker(const Position& start, 70 void addCompositionMarker(const Position& start,
71 const Position& end, 71 const Position& end,
72 Color underlineColor, 72 Color underlineColor,
73 bool thick, 73 bool thick,
74 Color backgroundColor); 74 Color backgroundColor);
75 75
76 void copyMarkers(Node* srcNode, 76 void copyMarkers(Node* srcNode,
77 unsigned startOffset, 77 unsigned startOffset,
78 int length, 78 int length,
79 Node* dstNode, 79 Node* dstNode,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 const Member<const Document> m_document; 159 const Member<const Document> m_document;
160 }; 160 };
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #ifndef NDEBUG 164 #ifndef NDEBUG
165 void showDocumentMarkers(const blink::DocumentMarkerController*); 165 void showDocumentMarkers(const blink::DocumentMarkerController*);
166 #endif 166 #endif
167 167
168 #endif // DocumentMarkerController_h 168 #endif // DocumentMarkerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698