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

Unified Diff: third_party/WebKit/Source/web/TextCheckerClientImpl.cpp

Issue 2791753003: Split WebTextCheckClient off WebSpellCheckClient (Closed)
Patch Set: Add TODOs for class renaming Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/TextCheckerClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/TextCheckerClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/TextCheckerClientImpl.cpp b/third_party/WebKit/Source/web/TextCheckerClientImpl.cpp
index 4d9be402ab98429be59ecd585dc79ddd87a50956..6318c420e4cd26e8183e84b9dcd41409c7a2f419 100644
--- a/third_party/WebKit/Source/web/TextCheckerClientImpl.cpp
+++ b/third_party/WebKit/Source/web/TextCheckerClientImpl.cpp
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "web/TextCheckerClientImpl.h"
-#include "public/web/WebSpellCheckClient.h"
+#include "public/web/WebTextCheckClient.h"
#include "public/web/WebTextCheckingResult.h"
#include "web/WebTextCheckingCompletionImpl.h"
#include "web/WebViewImpl.h"
@@ -24,9 +24,9 @@ void TextCheckerClientImpl::checkSpellingOfString(const String& text,
int spellLength = 0;
// Check to see if the provided text is spelled correctly.
- if (m_webView->spellCheckClient()) {
- m_webView->spellCheckClient()->checkSpelling(text, spellLocation,
- spellLength, nullptr);
+ if (m_webView->textCheckClient()) {
+ m_webView->textCheckClient()->checkSpelling(text, spellLocation,
+ spellLength, nullptr);
} else {
spellLocation = 0;
spellLength = 0;
@@ -42,17 +42,17 @@ void TextCheckerClientImpl::checkSpellingOfString(const String& text,
void TextCheckerClientImpl::requestCheckingOfString(
TextCheckingRequest* request) {
- if (!m_webView->spellCheckClient())
+ if (!m_webView->textCheckClient())
return;
const String& text = request->data().text();
- m_webView->spellCheckClient()->requestCheckingOfText(
+ m_webView->textCheckClient()->requestCheckingOfText(
text, new WebTextCheckingCompletionImpl(request));
}
void TextCheckerClientImpl::cancelAllPendingRequests() {
- if (!m_webView->spellCheckClient())
+ if (!m_webView->textCheckClient())
return;
- m_webView->spellCheckClient()->cancelAllPendingRequests();
+ m_webView->textCheckClient()->cancelAllPendingRequests();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/TextCheckerClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698