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

Unified Diff: third_party/closure_compiler/externs/language_settings_private.js

Issue 1373073003: Implement chrome.languageSettingsPrivate custom spell check functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LanguagePage1EditIndividual
Patch Set: rebase on histogram fixes Created 5 years, 2 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 | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 1dad65950a2eceb7e752722947e66fde9c041147..4d1cc7de6c7bcaea317246b7e706c2428e64821f 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
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698