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

Unified Diff: webkit/tools/test_shell/mock_spellcheck.cc

Issue 5120002: TestShell: Backported EventSender.contextClick() improvement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback Created 10 years, 1 month 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 | « webkit/tools/test_shell/mock_spellcheck.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/mock_spellcheck.cc
diff --git a/webkit/tools/test_shell/mock_spellcheck.cc b/webkit/tools/test_shell/mock_spellcheck.cc
index fd53401685a8493407f9b12c37e708b13c976068..cc05c1620dc7ef829b471e6a4f9065add1f010dc 100644
--- a/webkit/tools/test_shell/mock_spellcheck.cc
+++ b/webkit/tools/test_shell/mock_spellcheck.cc
@@ -125,3 +125,9 @@ bool MockSpellCheck::InitializeIfNeeded() {
// function always returns false.
return false;
}
+
+void MockSpellCheck::FillSuggestions(const string16& word,
+ std::vector<string16>* suggestions) {
+ if (word == ASCIIToUTF16("wellcome"))
+ suggestions->push_back(ASCIIToUTF16("welcome"));
+}
« no previous file with comments | « webkit/tools/test_shell/mock_spellcheck.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698