| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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: |
| 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.languageSettingsPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. |
| 10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation. |
| 11 |
| 5 /** @fileoverview Externs generated from namespace: languageSettingsPrivate */ | 12 /** @fileoverview Externs generated from namespace: languageSettingsPrivate */ |
| 6 | 13 |
| 7 /** | 14 /** |
| 8 * @const | 15 * @const |
| 9 */ | 16 */ |
| 10 chrome.languageSettingsPrivate = {}; | 17 chrome.languageSettingsPrivate = {}; |
| 11 | 18 |
| 12 /** | 19 /** |
| 13 * @typedef {{ | 20 * @typedef {{ |
| 14 * code: string, | 21 * code: string, |
| 15 * displayName: string, | 22 * displayName: string, |
| 16 * nativeDisplayName: string, | 23 * nativeDisplayName: string, |
| 17 * displayNameRTL: (boolean|undefined), | 24 * displayNameRTL: (boolean|undefined), |
| 18 * supportsUI: (boolean|undefined), | 25 * supportsUI: (boolean|undefined), |
| 19 * supportsSpellcheck: (boolean|undefined), | 26 * supportsSpellcheck: (boolean|undefined), |
| 20 * supportsTranslate: (boolean|undefined) | 27 * supportsTranslate: (boolean|undefined) |
| 21 * }} | 28 * }} |
| 22 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Lan
guage | 29 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Lan
guage |
| 23 */ | 30 */ |
| 24 var Language; | 31 chrome.languageSettingsPrivate.Language; |
| 25 | 32 |
| 26 /** | 33 /** |
| 27 * @typedef {{ | 34 * @typedef {{ |
| 28 * languageCode: string, | 35 * languageCode: string, |
| 29 * isReady: boolean, | 36 * isReady: boolean, |
| 30 * isDownloading: (boolean|undefined), | 37 * isDownloading: (boolean|undefined), |
| 31 * downloadFailed: (boolean|undefined) | 38 * downloadFailed: (boolean|undefined) |
| 32 * }} | 39 * }} |
| 33 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Spe
llcheckDictionaryStatus | 40 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Spe
llcheckDictionaryStatus |
| 34 */ | 41 */ |
| 35 var SpellcheckDictionaryStatus; | 42 chrome.languageSettingsPrivate.SpellcheckDictionaryStatus; |
| 36 | 43 |
| 37 /** | 44 /** |
| 38 * @typedef {{ | 45 * @typedef {{ |
| 39 * id: string, | 46 * id: string, |
| 40 * displayName: string, | 47 * displayName: string, |
| 41 * languageCodes: !Array<string>, | 48 * languageCodes: !Array<string>, |
| 42 * enabled: boolean | 49 * enabled: boolean |
| 43 * }} | 50 * }} |
| 44 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethod | 51 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethod |
| 45 */ | 52 */ |
| 46 var InputMethod; | 53 chrome.languageSettingsPrivate.InputMethod; |
| 47 | 54 |
| 48 /** | 55 /** |
| 49 * @typedef {{ | 56 * @typedef {{ |
| 50 * inputMethods: !Array<InputMethod>, | 57 * inputMethods: !Array<!chrome.languageSettingsPrivate.InputMethod>, |
| 51 * componentExtensionIMEs: !Array<InputMethod>, | 58 * componentExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod>
, |
| 52 * thirdPartyExtensionIMEs: !Array<InputMethod> | 59 * thirdPartyExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod
> |
| 53 * }} | 60 * }} |
| 54 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethodLists | 61 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Inp
utMethodLists |
| 55 */ | 62 */ |
| 56 var InputMethodLists; | 63 chrome.languageSettingsPrivate.InputMethodLists; |
| 57 | 64 |
| 58 /** | 65 /** |
| 59 * Gets languages available for translate, spell checking, input and locale. | 66 * Gets languages available for translate, spell checking, input and locale. |
| 60 * @param {function(!Array<Language>):void} callback | 67 * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} call
back |
| 61 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etLanguageList | 68 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etLanguageList |
| 62 */ | 69 */ |
| 63 chrome.languageSettingsPrivate.getLanguageList = function(callback) {}; | 70 chrome.languageSettingsPrivate.getLanguageList = function(callback) {}; |
| 64 | 71 |
| 65 /** | 72 /** |
| 66 * Sets the accepted languages, used to decide which languages to translate, | 73 * Sets the accepted languages, used to decide which languages to translate, |
| 67 * generate the Accept-Language header, etc. | 74 * generate the Accept-Language header, etc. |
| 68 * @param {!Array<string>} languageCodes | 75 * @param {!Array<string>} languageCodes |
| 69 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-s
etLanguageList | 76 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-s
etLanguageList |
| 70 */ | 77 */ |
| 71 chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {}; | 78 chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {}; |
| 72 | 79 |
| 73 /** | 80 /** |
| 74 * Gets the current status of the chosen spell check dictionaries. | 81 * Gets the current status of the chosen spell check dictionaries. |
| 75 * @param {function(!Array<SpellcheckDictionaryStatus>):void} callback | 82 * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionaryS
tatus>):void} callback |
| 76 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckDictionaryStatuses | 83 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckDictionaryStatuses |
| 77 */ | 84 */ |
| 78 chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callba
ck) {}; | 85 chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callba
ck) {}; |
| 79 | 86 |
| 80 /** | 87 /** |
| 81 * Gets the custom spell check words. | 88 * Gets the custom spell check words. |
| 82 * @param {function(!Array<string>):void} callback | 89 * @param {function(!Array<string>):void} callback |
| 83 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckWords | 90 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etSpellcheckWords |
| 84 */ | 91 */ |
| 85 chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; | 92 chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; |
| 86 | 93 |
| 87 /** | 94 /** |
| 88 * Gets the translate target language (in most cases, the display locale). | 95 * Gets the translate target language (in most cases, the display locale). |
| 89 * @param {function(string):void} callback | 96 * @param {function(string):void} callback |
| 90 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etTranslateTargetLanguage | 97 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etTranslateTargetLanguage |
| 91 */ | 98 */ |
| 92 chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {
}; | 99 chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {
}; |
| 93 | 100 |
| 94 /** | 101 /** |
| 95 * Gets all supported input methods, including IMEs. Chrome OS only. | 102 * Gets all supported input methods, including IMEs. Chrome OS only. |
| 96 * @param {function(InputMethodLists):void} callback | 103 * @param {function(!chrome.languageSettingsPrivate.InputMethodLists):void} call
back |
| 97 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etInputMethodLists | 104 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-g
etInputMethodLists |
| 98 */ | 105 */ |
| 99 chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {}; | 106 chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {}; |
| 100 | 107 |
| 101 /** | 108 /** |
| 102 * Adds the input method to the current user's list of enabled input methods, | 109 * Adds the input method to the current user's list of enabled input methods, |
| 103 * enabling the input method for the current user. Chrome OS only. | 110 * enabling the input method for the current user. Chrome OS only. |
| 104 * @param {string} inputMethodId | 111 * @param {string} inputMethodId |
| 105 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-a
ddInputMethod | 112 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-a
ddInputMethod |
| 106 */ | 113 */ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 chrome.languageSettingsPrivate.onInputMethodAdded; | 145 chrome.languageSettingsPrivate.onInputMethodAdded; |
| 139 | 146 |
| 140 /** | 147 /** |
| 141 * Called when an input method is removed. | 148 * Called when an input method is removed. |
| 142 * @type {!ChromeEvent} | 149 * @type {!ChromeEvent} |
| 143 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodRemoved | 150 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on
InputMethodRemoved |
| 144 */ | 151 */ |
| 145 chrome.languageSettingsPrivate.onInputMethodRemoved; | 152 chrome.languageSettingsPrivate.onInputMethodRemoved; |
| 146 | 153 |
| 147 | 154 |
| OLD | NEW |