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

Unified Diff: chrome/common/spellcheck_common.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: Addressed comments, added browsertest, fixed failures. Created 5 years, 6 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/common/spellcheck_common.h
diff --git a/chrome/common/spellcheck_common.h b/chrome/common/spellcheck_common.h
index cbdaf7bf08906ff3c5545f2dc84d9c773d37027f..1ab623798ddb381a1883a2e59207a5cae7e7307f 100644
--- a/chrome/common/spellcheck_common.h
+++ b/chrome/common/spellcheck_common.h
@@ -12,6 +12,8 @@ namespace base {
class FilePath;
}
+class PrefService;
please use gerrit instead 2015/06/16 00:31:17 namespace-less forward declaration should precede
Julius 2015/06/17 00:59:53 Done.
+
namespace chrome {
namespace spellcheck_common {
@@ -39,6 +41,9 @@ static const size_t MAX_SYNCABLE_DICTIONARY_WORDS = 1300;
// dictionary.
static const size_t MAX_CUSTOM_DICTIONARY_WORD_BYTES = 99;
+// Character that separates language codes saved in preferences.
+static const char kDictionaryLanguagesSeparator = ',';
+
base::FilePath GetVersionedFileName(const std::string& input_language,
const base::FilePath& dict_dir);
@@ -55,6 +60,12 @@ void GetISOLanguageCountryCodeFromLocale(const std::string& locale,
std::string* language_code,
std::string* country_code);
+// Returns the list of enabled spellcheck dictionaries.
+std::vector<std::string> GetDictionaryLanguagesPref(PrefService* prefs);
+
+// Returns true if multilingual spellchecker is enabled.
+bool MultilingualSpellcheckIsEnabled();
please use gerrit instead 2015/06/16 00:31:17 I think it's more common to put "Is" at the front
Julius 2015/06/17 00:59:53 Done.
+
} // namespace spellcheck_common
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698