summaryrefslogtreecommitdiffstats
path: root/third_party/closure_compiler/externs/language_settings_private.js
diff options
context:
space:
mode:
authormichaelpg <michaelpg@chromium.org>2015-10-23 15:39:11 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-23 22:39:56 +0000
commit3c03efbea3549d485ace8ef14859833163ec3972 (patch)
treeada9e5a7d64d990d3013cea9058bd32af57d48c3 /third_party/closure_compiler/externs/language_settings_private.js
parente8ed88e2b03c9e67b13da3a92ede079b0a345f15 (diff)
downloadchromium_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.js16
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