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

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

Issue 2922233002: [ActiveSuggestionMarker #1] Introduce abstract StyleableMarker subclass of DocumentMarker (Closed)
Patch Set: Add test for IsStyleableMarker() Created 3 years, 6 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 explicit DocumentMarkerController(Document&); 55 explicit DocumentMarkerController(Document&);
56 56
57 void Clear(); 57 void Clear();
58 void AddSpellingMarker(const EphemeralRange&, 58 void AddSpellingMarker(const EphemeralRange&,
59 const String& description = g_empty_string); 59 const String& description = g_empty_string);
60 void AddGrammarMarker(const EphemeralRange&, 60 void AddGrammarMarker(const EphemeralRange&,
61 const String& description = g_empty_string); 61 const String& description = g_empty_string);
62 void AddTextMatchMarker(const EphemeralRange&, TextMatchMarker::MatchStatus); 62 void AddTextMatchMarker(const EphemeralRange&, TextMatchMarker::MatchStatus);
63 void AddCompositionMarker(const EphemeralRange&, 63 void AddCompositionMarker(const EphemeralRange&,
64 Color underline_color, 64 Color underline_color,
65 CompositionMarker::Thickness, 65 StyleableMarker::Thickness,
66 Color background_color); 66 Color background_color);
67 67
68 void MoveMarkers(Node* src_node, int length, Node* dst_node); 68 void MoveMarkers(Node* src_node, int length, Node* dst_node);
69 69
70 void PrepareForDestruction(); 70 void PrepareForDestruction();
71 void RemoveMarkersInRange(const EphemeralRange&, DocumentMarker::MarkerTypes); 71 void RemoveMarkersInRange(const EphemeralRange&, DocumentMarker::MarkerTypes);
72 void RemoveMarkersOfTypes(DocumentMarker::MarkerTypes); 72 void RemoveMarkersOfTypes(DocumentMarker::MarkerTypes);
73 void RemoveMarkersForNode( 73 void RemoveMarkersForNode(
74 Node*, 74 Node*,
75 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); 75 DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const Member<const Document> document_; 136 const Member<const Document> document_;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #ifndef NDEBUG 141 #ifndef NDEBUG
142 void showDocumentMarkers(const blink::DocumentMarkerController*); 142 void showDocumentMarkers(const blink::DocumentMarkerController*);
143 #endif 143 #endif
144 144
145 #endif // DocumentMarkerController_h 145 #endif // DocumentMarkerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698