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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.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
Index: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index 701d204c2be30d0c1996c3cd483314d17ca018c3..c66ffa6fc7786033fc98642acb20aac951f76d43 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -73,7 +73,7 @@
#include "public/web/WebMenuItemInfo.h"
#include "public/web/WebPlugin.h"
#include "public/web/WebSearchableFormData.h"
-#include "public/web/WebSpellCheckClient.h"
+#include "public/web/WebTextCheckClient.h"
#include "public/web/WebViewClient.h"
#include "web/ContextMenuAllowedScope.h"
#include "web/WebDataSourceImpl.h"
@@ -328,9 +328,9 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu,
Vector<String> suggestions;
description.split('\n', suggestions);
data.dictionarySuggestions = suggestions;
- } else if (m_webView->spellCheckClient()) {
+ } else if (m_webView->textCheckClient()) {
int misspelledOffset, misspelledLength;
- m_webView->spellCheckClient()->checkSpelling(
+ m_webView->textCheckClient()->checkSpelling(
data.misspelledWord, misspelledOffset, misspelledLength,
&data.dictionarySuggestions);
}
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextCheckerClient.h ('k') | third_party/WebKit/Source/web/SpellCheckerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698