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

Unified Diff: chrome/renderer/spellchecker/spellcheck.h

Issue 1300213002: Offers suggestions for each language that marks a word misspelled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multi-spellcheck
Patch Set: Addressed comments. Created 5 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: chrome/renderer/spellchecker/spellcheck.h
diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h
index 078e202c68df39bcfd4e61a32611ab556e814f6e..5a5bbc6b5183581545b801e7bb688b576ec33994 100644
--- a/chrome/renderer/spellchecker/spellcheck.h
+++ b/chrome/renderer/spellchecker/spellcheck.h
@@ -121,6 +121,13 @@ class SpellCheck : public content::RenderProcessObserver,
FRIEND_TEST_ALL_PREFIXES(SpellCheckTest,
RequestSpellCheckMultipleTimesWithoutInitialization);
+ // Evenly fill |optional_suggestions| with a maximum of 5 suggestions from
please use gerrit instead 2015/08/20 22:14:27 Specify the constant name instead of 5. If we upda
Julius 2015/08/21 00:39:19 Done.
+ // |suggestions_list|. suggestions_list[i][j] is the j-th suggestion from
+ // the i-th language's suggestions. |optional_suggestions| cannot be null.
+ static void FillSuggestions(
+ const std::vector<std::vector<base::string16>>& suggestions_list,
+ std::vector<base::string16>* optional_suggestions);
+
// RenderProcessObserver implementation:
bool OnControlMessageReceived(const IPC::Message& message) override;
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck.cc » ('j') | chrome/renderer/spellchecker/spellcheck.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698