Artem Titov cb76c70534 Revert "Roll chromium_revision e1ef7d4b6b..b47e7752c6 (568794:569173)"
This reverts commit fd2457b10fc2713bfd5d86952216cf89b6283a90.

Reason for revert: <INSERT REASONING HERE>

Original change's description:
> Roll chromium_revision e1ef7d4b6b..b47e7752c6 (568794:569173)
> 
> Change log: e1ef7d4b6b..b47e7752c6
> Full diff: e1ef7d4b6b..b47e7752c6
> 
> Roll chromium third_party ab9fbe29c9..630af48a96
> Change log: ab9fbe29c9..630af48a96
> 
> Changed dependencies:
> * src/base: 03e1bc561f..6070b24b9f
> * src/build: bb306be407..511e258eee
> * src/ios: 48697bf3a1..ce1db7deb1
> * src/testing: 6440c4ea3a..80a4cfaab7
> * src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/f153b902be..f3c454475a
> * src/third_party/depot_tools: 1cabdc4643..a28b14f122
> * src/tools: 66f1089d0c..f6bb2a6fb4
> DEPS diff: e1ef7d4b6b..b47e7752c6/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: I7553549111225f2c5bc769dec114cd058ae699d5
> Reviewed-on: https://webrtc-review.googlesource.com/84600
> Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
> Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23692}

TBR=buildbot@webrtc.org

Change-Id: I7d136553622fe4c4e49dbd9c60406811a8b11bd8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: None
Cq-Include-Trybots: master.internal.tryserver.corp.webrtc:linux_internal
Reviewed-on: https://webrtc-review.googlesource.com/84720
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23708}
2018-06-21 12:53:44 +00:00

149 lines
5.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.quickUnlockPrivate.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: quickUnlockPrivate */
/**
* @const
*/
chrome.quickUnlockPrivate = {};
/**
* @typedef {{
* token: string,
* lifetimeSeconds: number
* }}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-TokenInfo
*/
chrome.quickUnlockPrivate.TokenInfo;
/**
* @enum {string}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-QuickUnlockMode
*/
chrome.quickUnlockPrivate.QuickUnlockMode = {
PIN: 'PIN',
};
/**
* @enum {string}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-CredentialProblem
*/
chrome.quickUnlockPrivate.CredentialProblem = {
TOO_SHORT: 'TOO_SHORT',
TOO_LONG: 'TOO_LONG',
TOO_WEAK: 'TOO_WEAK',
CONTAINS_NONDIGIT: 'CONTAINS_NONDIGIT',
};
/**
* @typedef {{
* errors: !Array<!chrome.quickUnlockPrivate.CredentialProblem>,
* warnings: !Array<!chrome.quickUnlockPrivate.CredentialProblem>
* }}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-CredentialCheck
*/
chrome.quickUnlockPrivate.CredentialCheck;
/**
* @typedef {{
* minLength: number,
* maxLength: number
* }}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-CredentialRequirements
*/
chrome.quickUnlockPrivate.CredentialRequirements;
/**
* Returns a token that can be used for future operations and the number of
* seconds until the token expires.
* @param {string} accountPassword The account password for the logged in user.
* @param {function(!chrome.quickUnlockPrivate.TokenInfo):void} onComplete
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAuthToken
*/
chrome.quickUnlockPrivate.getAuthToken = function(accountPassword, onComplete) {};
/**
* Sets the lock screen enabled state. NOTE: The lock enabled state is reflected
* in the settings.enable_screen_lock pref, which can be read but not written
* using the settings_private API (which also provides policy information). This
* API must be used to change the pref.
* @param {string} token The token returned by $(ref:getAuthToken).
* @param {boolean} enabled
* @param {function():void=} onComplete
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setLockScreenEnabled
*/
chrome.quickUnlockPrivate.setLockScreenEnabled = function(token, enabled, onComplete) {};
/**
* Returns the set of quick unlock modes that are available for the user to use.
* Some quick unlock modes may be disabled by policy.
* @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
* onComplete
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAvailableModes
*/
chrome.quickUnlockPrivate.getAvailableModes = function(onComplete) {};
/**
* Returns the quick unlock modes that are currently enabled and usable on the
* lock screen.
* @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
* onComplete
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getActiveModes
*/
chrome.quickUnlockPrivate.getActiveModes = function(onComplete) {};
/**
* Checks if the given credential can be used for the given unlock mode.
* Enterprise policy can change credential requirements.
* @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
* mode that is used.
* @param {string} credential The given credential.
* @param {function(!chrome.quickUnlockPrivate.CredentialCheck):void} onComplete
* Called with a list of warnings and errors the given |credential| has
* (or an empty list if there are none).
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-checkCredential
*/
chrome.quickUnlockPrivate.checkCredential = function(mode, credential, onComplete) {};
/**
* Gets the credential requirements for the given unlock mode.
* @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
* mode that is used.
* @param {function(!chrome.quickUnlockPrivate.CredentialRequirements):void}
* onComplete Called with the credential requirements of the given
* |mode|.
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getCredentialRequirements
*/
chrome.quickUnlockPrivate.getCredentialRequirements = function(mode, onComplete) {};
/**
* Update the set of quick unlock modes that are currently active/enabled.
* @param {string} token The token returned by $(ref:getAuthToken).
* @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick
* unlock modes that should be active.
* @param {!Array<string>} credentials The associated credential for each mode.
* To keep the credential the same for the associated mode, pass an
* empty string.
* @param {function():void} onComplete Called with true if the quick unlock
* state was updated, false otherwise. The update is treated as a single
* atomic operation.
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setModes
*/
chrome.quickUnlockPrivate.setModes = function(token, modes, credentials, onComplete) {};
/**
* Called after the active set of quick unlock modes has changed.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiveModesChanged
*/
chrome.quickUnlockPrivate.onActiveModesChanged;