
Change log:04484f1ad8..eb7233cee8
Full diff:04484f1ad8..eb7233cee8
Roll chromium third_party df47e60355..964479cf94 Change log:df47e60355..964479cf94
Changed dependencies: * src/build:39cffdabab..25be5e8c8e
* src/ios:9b90eea6f1..e05d522249
* src/testing:8092ac5e3a..c23170bef6
* src/tools:331f1e2bf6..9077464195
DEPS diff:04484f1ad8..eb7233cee8
/DEPS No update to Clang. TBR=buildbot@webrtc.org, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal NO_AUTOIMPORT_DEPS_CHECK=true Change-Id: I06f9e5a125ab145156cf2b5bc8ed5ad93ba4ae41 Reviewed-on: https://webrtc-review.googlesource.com/79640 Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org> Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23433}
210 lines
7.7 KiB
JavaScript
210 lines
7.7 KiB
JavaScript
// Copyright 2018 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://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
|
|
|
|
/** @fileoverview Externs generated from namespace: languageSettingsPrivate */
|
|
|
|
/**
|
|
* @const
|
|
*/
|
|
chrome.languageSettingsPrivate = {};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-MoveType
|
|
*/
|
|
chrome.languageSettingsPrivate.MoveType = {
|
|
TOP: 'TOP',
|
|
UP: 'UP',
|
|
DOWN: 'DOWN',
|
|
UNKNOWN: 'UNKNOWN',
|
|
};
|
|
|
|
/**
|
|
* @typedef {{
|
|
* code: string,
|
|
* displayName: string,
|
|
* nativeDisplayName: string,
|
|
* supportsUI: (boolean|undefined),
|
|
* supportsSpellcheck: (boolean|undefined),
|
|
* supportsTranslate: (boolean|undefined),
|
|
* isAllowedUILocale: (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|undefined),
|
|
* hasOptionsPage: (boolean|undefined)
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-InputMethod
|
|
*/
|
|
chrome.languageSettingsPrivate.InputMethod;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* 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) {};
|
|
|
|
/**
|
|
* Enables a language, adding it to the Accept-Language list (used to decide
|
|
* which languages to translate, generate the Accept-Language header, etc.).
|
|
* @param {string} languageCode
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-enableLanguage
|
|
*/
|
|
chrome.languageSettingsPrivate.enableLanguage = function(languageCode) {};
|
|
|
|
/**
|
|
* Disables a language, removing it from the Accept-Language list.
|
|
* @param {string} languageCode
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-disableLanguage
|
|
*/
|
|
chrome.languageSettingsPrivate.disableLanguage = function(languageCode) {};
|
|
|
|
/**
|
|
* Enables or disables translation for a given language.
|
|
* @param {string} languageCode
|
|
* @param {boolean} enable
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-setEnableTranslationForLanguage
|
|
*/
|
|
chrome.languageSettingsPrivate.setEnableTranslationForLanguage = function(languageCode, enable) {};
|
|
|
|
/**
|
|
* Moves a language inside the language list.
|
|
* @param {string} languageCode
|
|
* @param {!chrome.languageSettingsPrivate.MoveType} moveType
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-moveLanguage
|
|
*/
|
|
chrome.languageSettingsPrivate.moveLanguage = function(languageCode, moveType) {};
|
|
|
|
/**
|
|
* 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, 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
|
|
*/
|
|
chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {};
|
|
|
|
/**
|
|
* Gets all supported input methods, including third-party 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) {};
|
|
|
|
/**
|
|
* Tries to download the dictionary after a failed download.
|
|
* @param {string} languageCode
|
|
* @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-retryDownloadDictionary
|
|
*/
|
|
chrome.languageSettingsPrivate.retryDownloadDictionary = function(languageCode) {};
|
|
|
|
/**
|
|
* 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; |