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

Unified Diff: chrome/browser/resources/options/language_dictionary_overlay.js

Issue 11968050: Show dictionary changes in chrome://settings/editDictionary as changes come in (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments 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 | « no previous file | chrome/browser/resources/options/language_dictionary_overlay_word_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/language_dictionary_overlay.js
diff --git a/chrome/browser/resources/options/language_dictionary_overlay.js b/chrome/browser/resources/options/language_dictionary_overlay.js
index 87dcf77af8a97f22c9a52ead1903a50c88a83aed..c71542312096cc133bd892f1b0cc49dfd32f10bc 100644
--- a/chrome/browser/resources/options/language_dictionary_overlay.js
+++ b/chrome/browser/resources/options/language_dictionary_overlay.js
@@ -97,6 +97,11 @@ cr.define('options', function() {
EditDictionaryOverlay.getInstance().wordList_.setWordList(entries);
};
+ EditDictionaryOverlay.updateWords = function(add_words, remove_words) {
+ EditDictionaryOverlay.getInstance().wordList_.addWords(add_words);
+ EditDictionaryOverlay.getInstance().wordList_.removeWords(remove_words);
+ };
+
EditDictionaryOverlay.getWordListForTesting = function() {
return EditDictionaryOverlay.getInstance().wordList_;
};
« no previous file with comments | « no previous file | chrome/browser/resources/options/language_dictionary_overlay_word_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698