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

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: Fixed final nits. 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
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.h
diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h
index 078e202c68df39bcfd4e61a32611ab556e814f6e..b972e173a5bd2b4f0feca0c600f830d4bc6107c0 100644
--- a/chrome/renderer/spellchecker/spellcheck.h
+++ b/chrome/renderer/spellchecker/spellcheck.h
@@ -121,6 +121,14 @@ class SpellCheck : public content::RenderProcessObserver,
FRIEND_TEST_ALL_PREFIXES(SpellCheckTest,
RequestSpellCheckMultipleTimesWithoutInitialization);
+ // Evenly fill |optional_suggestions| with a maximum of |kMaxSuggestions|
+ // suggestions from |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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698