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

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: Reworked the algorithm and refactored tests. 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..05cc7d7a11868d3a9f2760cd38917f59bb20037d 100644
--- a/chrome/renderer/spellchecker/spellcheck.h
+++ b/chrome/renderer/spellchecker/spellcheck.h
@@ -150,6 +150,12 @@ class SpellCheck : public content::RenderProcessObserver,
scoped_ptr<SpellcheckRequest> pending_request_param_;
#endif
+ // Evenly fill |optional_suggestions| with suggestions from
+ // |suggestions_list|.
please use gerrit instead 2015/08/20 18:40:23 Specify the max size of optional suggestions. Spe
Julius 2015/08/20 21:52:51 Done.
+ void FillSuggestions(
+ std::vector<std::vector<base::string16>>& suggestions_list,
+ std::vector<base::string16>* optional_suggestions);
+
// A vector of objects used to actually check spelling, one for each enabled
// language.
ScopedVector<SpellcheckLanguage> languages_;
« 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