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

Unified Diff: chrome/browser/spellchecker/spellcheck_service.h

Issue 1156473007: Enables the user to select multiple languages for spellchecking (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/browser/spellchecker/spellcheck_service.h
diff --git a/chrome/browser/spellchecker/spellcheck_service.h b/chrome/browser/spellchecker/spellcheck_service.h
index 3fd004aef72f448e0eabb741c2b18fbb4791c67a..e4fa9fe1b706d1bfa377c6f2ec6a7d3fbc12da6e 100644
--- a/chrome/browser/spellchecker/spellcheck_service.h
+++ b/chrome/browser/spellchecker/spellcheck_service.h
@@ -59,17 +59,18 @@ class SpellcheckService : public KeyedService,
// This function computes a vector of strings which are to be displayed in
// the context menu over a text area for changing spell check languages. It
- // returns the index of the current spell check language in the vector.
+ // returns the set of indices of the current spell check languages in the
Julius 2015/06/03 21:18:39 Done.
+ // vector.
// TODO(port): this should take a vector of base::string16, but the
// implementation has some dependencies in l10n util that need porting first.
- static int GetSpellCheckLanguages(content::BrowserContext* context,
- std::vector<std::string>* languages);
+ static std::set<int> GetSpellCheckLanguages(
Julius 2015/06/03 21:18:39 Changed to an int because this return value is sup
+ content::BrowserContext* context,
+ std::vector<std::string>* languages);
// Computes a vector of strings which are to be displayed in the context
// menu from |accept_languages| and |dictionary_language|.
static void GetSpellCheckLanguagesFromAcceptLanguages(
const std::vector<std::string>& accept_languages,
- const std::string& dictionary_language,
std::vector<std::string>* languages);
// Signals the event attached by AttachTestEvent() to report the specified

Powered by Google App Engine
This is Rietveld 408576698