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

Unified Diff: chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc

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 | « chrome/browser/ui/webui/options/edit_dictionary_browsertest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
diff --git a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
index 32a5eccc4102513733c0b6ad892d08624c657309..9b3b091cdb90bac8389894513bacc4f970f88642 100644
--- a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
+++ b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
@@ -77,10 +77,22 @@ void LanguageDictionaryOverlayHandler::OnCustomDictionaryLoaded() {
void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordAdded(
const std::string& word) {
+ ListValue add_words;
+ ListValue remove_words;
+ add_words.AppendString(word);
+ web_ui()->CallJavascriptFunction("EditDictionaryOverlay.updateWords",
+ add_words,
+ remove_words);
}
void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordRemoved(
const std::string& word) {
+ ListValue add_words;
+ ListValue remove_words;
+ remove_words.AppendString(word);
+ web_ui()->CallJavascriptFunction("EditDictionaryOverlay.updateWords",
+ add_words,
+ remove_words);
}
void LanguageDictionaryOverlayHandler::ResetDictionaryWords() {
« no previous file with comments | « chrome/browser/ui/webui/options/edit_dictionary_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698