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

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

Issue 2273253002: Cleanup overloads of isSpellCheckingEnabledFor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RestrictTextCheckingParagraph
Patch Set: Created 4 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 | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.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 * 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 DECLARE_TRACE(); 54 DECLARE_TRACE();
55 55
56 SpellCheckerClient& spellCheckerClient() const; 56 SpellCheckerClient& spellCheckerClient() const;
57 TextCheckerClient& textChecker() const; 57 TextCheckerClient& textChecker() const;
58 58
59 bool isSpellCheckingEnabled() const; 59 bool isSpellCheckingEnabled() const;
60 void toggleSpellCheckingEnabled(); 60 void toggleSpellCheckingEnabled();
61 void ignoreSpelling(); 61 void ignoreSpelling();
62 bool isSpellCheckingEnabledInFocusedNode() const; 62 bool isSpellCheckingEnabledInFocusedNode() const;
63 bool isSpellCheckingEnabledFor(const Node*) const;
64 static bool isSpellCheckingEnabledFor(const VisibleSelection&);
65 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&); 63 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&);
66 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>& ); 64 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>& );
67 void advanceToNextMisspelling(bool startBeforeSelection = false); 65 void advanceToNextMisspelling(bool startBeforeSelection = false);
68 void showSpellingGuessPanel(); 66 void showSpellingGuessPanel();
69 void didBeginEditing(Element*); 67 void didBeginEditing(Element*);
70 void clearMisspellingsAndBadGrammar(const VisibleSelection&); 68 void clearMisspellingsAndBadGrammar(const VisibleSelection&);
71 void markMisspellingsAndBadGrammar(const VisibleSelection&); 69 void markMisspellingsAndBadGrammar(const VisibleSelection&);
72 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 70 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
73 void replaceMisspelledRange(const String&); 71 void replaceMisspelledRange(const String&);
74 void removeSpellingMarkers(); 72 void removeSpellingMarkers();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void chunkAndMarkAllMisspellingsAndBadGrammar(const EphemeralRange&); 114 void chunkAndMarkAllMisspellingsAndBadGrammar(const EphemeralRange&);
117 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi bleSelection& newAdjacentWords); 115 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi bleSelection& newAdjacentWords);
118 116
119 Member<LocalFrame> m_frame; 117 Member<LocalFrame> m_frame;
120 const Member<SpellCheckRequester> m_spellCheckRequester; 118 const Member<SpellCheckRequester> m_spellCheckRequester;
121 }; 119 };
122 120
123 } // namespace blink 121 } // namespace blink
124 122
125 #endif // SpellChecker_h 123 #endif // SpellChecker_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698