| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file was generated by: | 5 // This file was generated by: |
| 6 // tools/json_schema_compiler/compiler.py. | 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.languageSettingsPrivate.FooType'. | 8 // 'chrome.languageSettingsPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
| 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
| 11 | 11 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 * @typedef {{ | 57 * @typedef {{ |
| 58 * componentExtensionImes: !Array<!chrome.languageSettingsPrivate.InputMethod>
, | 58 * componentExtensionImes: !Array<!chrome.languageSettingsPrivate.InputMethod>
, |
| 59 * thirdPartyExtensionImes: !Array<!chrome.languageSettingsPrivate.InputMethod
> | 59 * thirdPartyExtensionImes: !Array<!chrome.languageSettingsPrivate.InputMethod
> |
| 60 * }} | 60 * }} |
| 61 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethodLists | 61 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethodLists |
| 62 */ | 62 */ |
| 63 chrome.languageSettingsPrivate.InputMethodLists; | 63 chrome.languageSettingsPrivate.InputMethodLists; |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Gets languages available for translate, spell checking, input and locale. | 66 * Gets languages available for translate, spell checking, input and locale. |
| 67 * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} call
back | 67 * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} |
| 68 * callback |
| 68 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etLanguageList | 69 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etLanguageList |
| 69 */ | 70 */ |
| 70 chrome.languageSettingsPrivate.getLanguageList = function(callback) {}; | 71 chrome.languageSettingsPrivate.getLanguageList = function(callback) {}; |
| 71 | 72 |
| 72 /** | 73 /** |
| 73 * Sets the accepted languages, used to decide which languages to translate, | 74 * Enables a language, adding it to the Accept-Language list (used to decide |
| 74 * generate the Accept-Language header, etc. | 75 * which languages to translate, generate the Accept-Language header, etc.). |
| 75 * @param {!Array<string>} languageCodes | 76 * @param {string} languageCode |
| 76 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-s
etLanguageList | 77 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-e
nableLanguage |
| 77 */ | 78 */ |
| 78 chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {}; | 79 chrome.languageSettingsPrivate.enableLanguage = function(languageCode) {}; |
| 80 |
| 81 /** |
| 82 * Disables a language, removing it from the Accept-Language list. |
| 83 * @param {string} languageCode |
| 84 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-d
isableLanguage |
| 85 */ |
| 86 chrome.languageSettingsPrivate.disableLanguage = function(languageCode) {}; |
| 79 | 87 |
| 80 /** | 88 /** |
| 81 * Gets the current status of the chosen spell check dictionaries. | 89 * Gets the current status of the chosen spell check dictionaries. |
| 82 * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionaryS
tatus>):void} callback | 90 * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionaryS
tatus>):void} |
| 91 * callback |
| 83 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckDictionaryStatuses | 92 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckDictionaryStatuses |
| 84 */ | 93 */ |
| 85 chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callba
ck) {}; | 94 chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callba
ck) {}; |
| 86 | 95 |
| 87 /** | 96 /** |
| 88 * Gets the custom spell check words, in sorted order. | 97 * Gets the custom spell check words, in sorted order. |
| 89 * @param {function(!Array<string>):void} callback | 98 * @param {function(!Array<string>):void} callback |
| 90 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckWords | 99 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckWords |
| 91 */ | 100 */ |
| 92 chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; | 101 chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 107 | 116 |
| 108 /** | 117 /** |
| 109 * Gets the translate target language (in most cases, the display locale). | 118 * Gets the translate target language (in most cases, the display locale). |
| 110 * @param {function(string):void} callback | 119 * @param {function(string):void} callback |
| 111 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etTranslateTargetLanguage | 120 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etTranslateTargetLanguage |
| 112 */ | 121 */ |
| 113 chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {
}; | 122 chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {
}; |
| 114 | 123 |
| 115 /** | 124 /** |
| 116 * Gets all supported input methods, including third-party IMEs. Chrome OS only. | 125 * Gets all supported input methods, including third-party IMEs. Chrome OS only. |
| 117 * @param {function(!chrome.languageSettingsPrivate.InputMethodLists):void} call
back | 126 * @param {function(!chrome.languageSettingsPrivate.InputMethodLists):void} |
| 127 * callback |
| 118 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etInputMethodLists | 128 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etInputMethodLists |
| 119 */ | 129 */ |
| 120 chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {}; | 130 chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {}; |
| 121 | 131 |
| 122 /** | 132 /** |
| 123 * Adds the input method to the current user's list of enabled input methods, | 133 * Adds the input method to the current user's list of enabled input methods, |
| 124 * enabling the input method for the current user. Chrome OS only. | 134 * enabling the input method for the current user. Chrome OS only. |
| 125 * @param {string} inputMethodId | 135 * @param {string} inputMethodId |
| 126 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-a
ddInputMethod | 136 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-a
ddInputMethod |
| 127 */ | 137 */ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 157 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodAdded | 167 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodAdded |
| 158 */ | 168 */ |
| 159 chrome.languageSettingsPrivate.onInputMethodAdded; | 169 chrome.languageSettingsPrivate.onInputMethodAdded; |
| 160 | 170 |
| 161 /** | 171 /** |
| 162 * Called when an input method is removed. | 172 * Called when an input method is removed. |
| 163 * @type {!ChromeEvent} | 173 * @type {!ChromeEvent} |
| 164 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodRemoved | 174 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodRemoved |
| 165 */ | 175 */ |
| 166 chrome.languageSettingsPrivate.onInputMethodRemoved; | 176 chrome.languageSettingsPrivate.onInputMethodRemoved; |
| 167 | |
| 168 | |
| OLD | NEW |