1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file was generated by:
// tools/json_schema_compiler/compiler.py.
// NOTE: The format of types has changed. 'FooType' is now
// 'chrome.languageSettingsPrivate.FooType'.
// Please run the closure compiler before committing changes.
// See https://code.google.com/p/chromium/wiki/ClosureCompilation.
/** @fileoverview Externs generated from namespace: languageSettingsPrivate */
/**
* @const
*/
chrome.languageSettingsPrivate = {};
/**
* @typedef {{
* code: string,
* displayName: string,
* nativeDisplayName: string,
* displayNameRTL: (boolean|undefined),
* supportsUI: (boolean|undefined),
* supportsSpellcheck: (boolean|undefined),
* supportsTranslate: (boolean|undefined)
* }}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Language
*/
chrome.languageSettingsPrivate.Language;
/**
* @typedef {{
* languageCode: string,
* isReady: boolean,
* isDownloading: (boolean|undefined),
* downloadFailed: (boolean|undefined)
* }}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-SpellcheckDictionaryStatus
*/
chrome.languageSettingsPrivate.SpellcheckDictionaryStatus;
/**
* @typedef {{
* id: string,
* displayName: string,
* languageCodes: !Array<string>,
* enabled: boolean
* }}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-InputMethod
*/
chrome.languageSettingsPrivate.InputMethod;
/**
* @typedef {{
* inputMethods: !Array<!chrome.languageSettingsPrivate.InputMethod>,
* componentExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod>,
* thirdPartyExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod>
* }}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-InputMethodLists
*/
chrome.languageSettingsPrivate.InputMethodLists;
/**
* Gets languages available for translate, spell checking, input and locale.
* @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} callback
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getLanguageList
*/
chrome.languageSettingsPrivate.getLanguageList = function(callback) {};
/**
* Sets the accepted languages, used to decide which languages to translate,
* generate the Accept-Language header, etc.
* @param {!Array<string>} languageCodes
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-setLanguageList
*/
chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {};
/**
* Gets the current status of the chosen spell check dictionaries.
* @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionaryStatus>):void} callback
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getSpellcheckDictionaryStatuses
*/
chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callback) {};
/**
* Gets the custom spell check words.
* @param {function(!Array<string>):void} callback
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getSpellcheckWords
*/
chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {};
/**
* 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
*/
chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {};
/**
* Gets all supported input methods, including IMEs. Chrome OS only.
* @param {function(!chrome.languageSettingsPrivate.InputMethodLists):void} callback
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getInputMethodLists
*/
chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {};
/**
* Adds the input method to the current user's list of enabled input methods,
* enabling the input method for the current user. Chrome OS only.
* @param {string} inputMethodId
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-addInputMethod
*/
chrome.languageSettingsPrivate.addInputMethod = function(inputMethodId) {};
/**
* Removes the input method from the current user's list of enabled input
* methods, disabling the input method for the current user. Chrome OS only.
* @param {string} inputMethodId
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-removeInputMethod
*/
chrome.languageSettingsPrivate.removeInputMethod = function(inputMethodId) {};
/**
* Called when the pref for the dictionaries used for spell checking changes or
* the status of one of the spell check dictionaries changes.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onSpellcheckDictionariesChanged
*/
chrome.languageSettingsPrivate.onSpellcheckDictionariesChanged;
/**
* Called when words are added to and/or removed from the custom spell check
* dictionary.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onCustomDictionaryChanged
*/
chrome.languageSettingsPrivate.onCustomDictionaryChanged;
/**
* Called when an input method is added.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onInputMethodAdded
*/
chrome.languageSettingsPrivate.onInputMethodAdded;
/**
* Called when an input method is removed.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onInputMethodRemoved
*/
chrome.languageSettingsPrivate.onInputMethodRemoved;
|