From 3c03efbea3549d485ace8ef14859833163ec3972 Mon Sep 17 00:00:00 2001 From: michaelpg <michaelpg@chromium.org> Date: Fri, 23 Oct 2015 15:39:11 -0700 Subject: Implement chrome.languageSettingsPrivate custom spell check functions Implement functions relating to the custom spell check dictionary. These functions will be used by the Material Design Settings page. BUG=479043 Review URL: https://codereview.chromium.org/1373073003 Cr-Commit-Position: refs/heads/master@{#355910} --- .../externs/language_settings_private.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'third_party/closure_compiler/externs/language_settings_private.js') diff --git a/third_party/closure_compiler/externs/language_settings_private.js b/third_party/closure_compiler/externs/language_settings_private.js index 1dad659..4d1cc7d 100644 --- a/third_party/closure_compiler/externs/language_settings_private.js +++ b/third_party/closure_compiler/externs/language_settings_private.js @@ -85,13 +85,27 @@ chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {}; chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callback) {}; /** - * Gets the custom spell check words. + * Gets the custom spell check words, in sorted order. * @param {function(!Array<string>):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getSpellcheckWords */ chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; /** + * Adds a word to the custom dictionary. + * @param {string} word + * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-addSpellcheckWord + */ +chrome.languageSettingsPrivate.addSpellcheckWord = function(word) {}; + +/** + * Removes a word from the custom dictionary. + * @param {string} word + * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-removeSpellcheckWord + */ +chrome.languageSettingsPrivate.removeSpellcheckWord = function(word) {}; + +/** * Gets the translate target language (in most cases, the display locale). * @param {function(string):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getTranslateTargetLanguage -- cgit v1.1