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

Side by Side Diff: Source/core/dom/DocumentMarker.h

Issue 24198006: [blink] Add a DocumentMarker::MisspellingMarkers helper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the DOM implementation for WebCore. 2 * This file is part of the DOM implementation for WebCore.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }; 61 };
62 62
63 class AllMarkers : public MarkerTypes { 63 class AllMarkers : public MarkerTypes {
64 public: 64 public:
65 AllMarkers() 65 AllMarkers()
66 : MarkerTypes(Spelling | Grammar | TextMatch) 66 : MarkerTypes(Spelling | Grammar | TextMatch)
67 { 67 {
68 } 68 }
69 }; 69 };
70 70
71 class MisspellingMarkers : public MarkerTypes {
72 public:
73 MisspellingMarkers()
74 : MarkerTypes(Spelling | Grammar)
75 {
76 }
77 };
78
71 DocumentMarker(); 79 DocumentMarker();
72 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset); 80 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset);
73 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S tring& description); 81 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S tring& description);
74 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S tring& description, uint32_t hash); 82 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S tring& description, uint32_t hash);
75 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch); 83 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch);
76 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, PassRef Ptr<DocumentMarkerDetails>); 84 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, PassRef Ptr<DocumentMarkerDetails>);
77 85
78 MarkerType type() const { return m_type; } 86 MarkerType type() const { return m_type; }
79 unsigned startOffset() const { return m_startOffset; } 87 unsigned startOffset() const { return m_startOffset; }
80 unsigned endOffset() const { return m_endOffset; } 88 unsigned endOffset() const { return m_endOffset; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 public: 129 public:
122 DocumentMarkerDetails() { } 130 DocumentMarkerDetails() { }
123 virtual ~DocumentMarkerDetails(); 131 virtual ~DocumentMarkerDetails();
124 virtual bool isDescription() const { return false; } 132 virtual bool isDescription() const { return false; }
125 virtual bool isTextMatch() const { return false; } 133 virtual bool isTextMatch() const { return false; }
126 }; 134 };
127 135
128 } // namespace WebCore 136 } // namespace WebCore
129 137
130 #endif // DocumentMarker_h 138 #endif // DocumentMarker_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698