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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2251693003: Rename "ContinuousSpellChecking" to "SpellChecking" in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
index 8ca3c8f40f61879d8524e736e10fa56c062aa17a..1bb7ce8a387d9c0a76548007112b2322960e9e11 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -128,15 +128,15 @@ SpellChecker::SpellChecker(LocalFrame& frame)
{
}
-bool SpellChecker::isContinuousSpellCheckingEnabled() const
+bool SpellChecker::isSpellCheckingEnabled() const
{
- return spellCheckerClient().isContinuousSpellCheckingEnabled();
+ return spellCheckerClient().isSpellCheckingEnabled();
}
-void SpellChecker::toggleContinuousSpellChecking()
+void SpellChecker::toggleSpellCheckingEnabled()
{
- spellCheckerClient().toggleContinuousSpellChecking();
- if (isContinuousSpellCheckingEnabled())
+ spellCheckerClient().toggleSpellCheckingEnabled();
+ if (isSpellCheckingEnabled())
return;
for (Frame* frame = this->frame().page()->mainFrame(); frame; frame = frame->tree().traverseNext()) {
if (!frame->isLocalFrame())
@@ -148,7 +148,7 @@ void SpellChecker::toggleContinuousSpellChecking()
void SpellChecker::didBeginEditing(Element* element)
{
- if (!isContinuousSpellCheckingEnabled())
+ if (!isSpellCheckingEnabled())
return;
bool isTextField = false;
@@ -295,7 +295,7 @@ void SpellChecker::clearMisspellingsAndBadGrammar(const VisibleSelection &moving
void SpellChecker::markMisspellingsAndBadGrammar(const VisibleSelection& selection)
{
- if (!isContinuousSpellCheckingEnabled())
+ if (!isSpellCheckingEnabled())
return;
const EphemeralRange& range = selection.toNormalizedEphemeralRange();
@@ -316,7 +316,7 @@ void SpellChecker::markMisspellingsAndBadGrammar(const VisibleSelection& selecti
void SpellChecker::markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection)
{
- if (!isContinuousSpellCheckingEnabled())
+ if (!isSpellCheckingEnabled())
return;
TRACE_EVENT0("blink", "SpellChecker::markMisspellingsAfterLineBreak");
@@ -326,7 +326,7 @@ void SpellChecker::markMisspellingsAfterLineBreak(const VisibleSelection& wordSe
void SpellChecker::markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, const VisibleSelection& selectionAfterTyping)
{
- if (!isContinuousSpellCheckingEnabled())
+ if (!isSpellCheckingEnabled())
return;
TRACE_EVENT0("blink", "SpellChecker::markMisspellingsAfterTypingToWord");
@@ -642,8 +642,8 @@ void SpellChecker::respondToChangedSelection(const VisibleSelection& oldSelectio
if (!isSpellCheckingEnabledFor(oldSelection))
return;
- // When continuous spell checking is off, existing markers disappear after the selection changes.
- if (!isContinuousSpellCheckingEnabled()) {
+ // When spell checking is off, existing markers disappear after the selection changes.
+ if (!isSpellCheckingEnabled()) {
frame().document()->markers().removeMarkers(DocumentMarker::Spelling);
frame().document()->markers().removeMarkers(DocumentMarker::Grammar);
return;
@@ -706,7 +706,7 @@ void SpellChecker::spellCheckAfterBlur()
void SpellChecker::spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords)
{
- if (!isContinuousSpellCheckingEnabled())
+ if (!isSpellCheckingEnabled())
return;
TRACE_EVENT0("blink", "SpellChecker::spellCheckOldSelection");

Powered by Google App Engine
This is Rietveld 408576698