DescriptionAdd HasWord(string) method to SpellcheckCustomDictionary
This CL adds a method HasWord(string) to SpellcheckCustomDictionary and changes
the internal data structure in SpellcheckCustomDictionary from a vector to a set
for more efficient querying. Spelling service client will use the new method to
send IN_DICTIONARY feedback to spelling service for words that are in user's
custom spellcheck dictionary. Spelling service client will use this method in
upcoming CLs.
This CL also modifies IPC message "SpellCheckMsg_Init" to pass a set instead of
a vector of custom dictionary words. The browser sends this message to the
renderer to initialize spellcheck.
BUG=170514
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202722
Patch Set 1 #Patch Set 2 : Fix Android compile #Patch Set 3 : Fix sync_integration_tests #Patch Set 4 : Attempt to fix android compile again #
Total comments: 5
Patch Set 5 : Address Dan's comments #
Total comments: 2
Patch Set 6 : Simplify c/b/sync/test/integration/dictionary_helper.cc #Patch Set 7 : Clarified message direction (browser-to-renderer) in spellcheck_messages.h #Messages
Total messages: 18 (0 generated)
|