diff options
author | michaelpg <michaelpg@chromium.org> | 2015-10-23 15:39:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-23 22:39:56 +0000 |
commit | 3c03efbea3549d485ace8ef14859833163ec3972 (patch) | |
tree | ada9e5a7d64d990d3013cea9058bd32af57d48c3 /third_party/closure_compiler/externs/language_settings_private.js | |
parent | e8ed88e2b03c9e67b13da3a92ede079b0a345f15 (diff) | |
download | chromium_src-3c03efbea3549d485ace8ef14859833163ec3972.zip chromium_src-3c03efbea3549d485ace8ef14859833163ec3972.tar.gz chromium_src-3c03efbea3549d485ace8ef14859833163ec3972.tar.bz2 |
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}
Diffstat (limited to 'third_party/closure_compiler/externs/language_settings_private.js')
-rw-r--r-- | third_party/closure_compiler/externs/language_settings_private.js | 16 |
1 files changed, 15 insertions, 1 deletions
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 |