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

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: Fixed style errors. 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
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"));
+}

Powered by Google App Engine
This is Rietveld 408576698