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

Unified Diff: chrome/common/spellcheck_common.h

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge master Created 7 years, 11 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 | « chrome/common/pref_names.cc ('k') | chrome/common/spellcheck_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/spellcheck_common.h
diff --git a/chrome/common/spellcheck_common.h b/chrome/common/spellcheck_common.h
index d11dcfc6741d3a481b9058d4f2c540efa1cfdc9d..55f82720c9035f2f3ee1e4a05e34ed42c5587a14 100644
--- a/chrome/common/spellcheck_common.h
+++ b/chrome/common/spellcheck_common.h
@@ -18,6 +18,14 @@ static const int kMaxSuggestions = 5;
static const int kMaxAutoCorrectWordSize = 8;
+// Maximum number of words in the custom spellcheck dictionary that can be
+// synced.
+static const size_t MAX_SYNCABLE_DICTIONARY_WORDS = 1300;
+
+// Maximum number of bytes in a word that can be added to the custom spellcheck
+// dictionary.
+static const size_t MAX_CUSTOM_DICTIONARY_WORD_BYTES = 99;
+
typedef std::vector<std::string> WordList;
FilePath GetVersionedFileName(const std::string& input_language,
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/common/spellcheck_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698