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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h

Issue 2241293006: Remove parameter node from SpellChecker::chunkAndMarkAllMisspellingsAndBadGrammar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DCHECK Created 4 years, 4 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void replaceMisspelledRange(const String&); 71 void replaceMisspelledRange(const String&);
72 void removeSpellingMarkers(); 72 void removeSpellingMarkers();
73 void removeSpellingMarkersUnderWords(const Vector<String>& words); 73 void removeSpellingMarkersUnderWords(const Vector<String>& words);
74 void spellCheckAfterBlur(); 74 void spellCheckAfterBlur();
75 75
76 void didEndEditingOnTextField(Element*); 76 void didEndEditingOnTextField(Element*);
77 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le ngth) const; 77 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le ngth) const;
78 bool selectionStartHasSpellingMarkerFor(int from, int length) const; 78 bool selectionStartHasSpellingMarkerFor(int from, int length) const;
79 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe lection); 79 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe lection);
80 void cancelCheck(); 80 void cancelCheck();
81 void chunkAndMarkAllMisspellingsAndBadGrammar(Node*, const EphemeralRange&); 81 void chunkAndMarkAllMisspellingsAndBadGrammar(const EphemeralRange&);
82 void requestTextChecking(const Element&); 82 void requestTextChecking(const Element&);
83 83
84 // Exposed for testing only 84 // Exposed for testing only
85 SpellCheckRequester& spellCheckRequester() const { return *m_spellCheckReque ster; } 85 SpellCheckRequester& spellCheckRequester() const { return *m_spellCheckReque ster; }
86 86
87 // The leak detector will report leaks should queued requests be posted 87 // The leak detector will report leaks should queued requests be posted
88 // while it GCs repeatedly, as the requests keep their associated element 88 // while it GCs repeatedly, as the requests keep their associated element
89 // alive. 89 // alive.
90 // 90 //
91 // Hence allow the leak detector to effectively stop the spell checker to 91 // Hence allow the leak detector to effectively stop the spell checker to
(...skipping 18 matching lines...) Expand all
110 void chunkAndMarkAllMisspellingsAndBadGrammar(const TextCheckingParagraph& f ullParagraphToCheck); 110 void chunkAndMarkAllMisspellingsAndBadGrammar(const TextCheckingParagraph& f ullParagraphToCheck);
111 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi bleSelection& newAdjacentWords); 111 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi bleSelection& newAdjacentWords);
112 112
113 Member<LocalFrame> m_frame; 113 Member<LocalFrame> m_frame;
114 const Member<SpellCheckRequester> m_spellCheckRequester; 114 const Member<SpellCheckRequester> m_spellCheckRequester;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // SpellChecker_h 119 #endif // SpellChecker_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698