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}
119 lines
3.7 KiB
JavaScript
119 lines
3.7 KiB
JavaScript
// Copyright 2016 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.settingsPrivate.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: settingsPrivate */
|
|
|
|
/**
|
|
* @const
|
|
*/
|
|
chrome.settingsPrivate = {};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefType
|
|
*/
|
|
chrome.settingsPrivate.PrefType = {
|
|
BOOLEAN: 'BOOLEAN',
|
|
NUMBER: 'NUMBER',
|
|
STRING: 'STRING',
|
|
URL: 'URL',
|
|
LIST: 'LIST',
|
|
DICTIONARY: 'DICTIONARY',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#type-ControlledBy
|
|
*/
|
|
chrome.settingsPrivate.ControlledBy = {
|
|
DEVICE_POLICY: 'DEVICE_POLICY',
|
|
USER_POLICY: 'USER_POLICY',
|
|
OWNER: 'OWNER',
|
|
PRIMARY_USER: 'PRIMARY_USER',
|
|
EXTENSION: 'EXTENSION',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#type-Enforcement
|
|
*/
|
|
chrome.settingsPrivate.Enforcement = {
|
|
ENFORCED: 'ENFORCED',
|
|
RECOMMENDED: 'RECOMMENDED',
|
|
};
|
|
|
|
/**
|
|
* @typedef {{
|
|
* key: string,
|
|
* type: !chrome.settingsPrivate.PrefType,
|
|
* value: *,
|
|
* controlledBy: (!chrome.settingsPrivate.ControlledBy|undefined),
|
|
* controlledByName: (string|undefined),
|
|
* enforcement: (!chrome.settingsPrivate.Enforcement|undefined),
|
|
* recommendedValue: (*|undefined),
|
|
* extensionId: (string|undefined),
|
|
* extensionCanBeDisabled: (boolean|undefined)
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject
|
|
*/
|
|
chrome.settingsPrivate.PrefObject;
|
|
|
|
/**
|
|
* Sets a settings value.
|
|
* @param {string} name The name of the pref.
|
|
* @param {*} value The new value of the pref.
|
|
* @param {string} pageId The user metrics identifier or null.
|
|
* @param {function(boolean):void} callback The callback for whether the pref
|
|
* was set or not.
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#method-setPref
|
|
*/
|
|
chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {};
|
|
|
|
/**
|
|
* Gets an array of all the prefs.
|
|
* @param {function(!Array<!chrome.settingsPrivate.PrefObject>):void} callback
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPrefs
|
|
*/
|
|
chrome.settingsPrivate.getAllPrefs = function(callback) {};
|
|
|
|
/**
|
|
* Gets the value of a specific pref.
|
|
* @param {string} name
|
|
* @param {function(!chrome.settingsPrivate.PrefObject):void} callback
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref
|
|
*/
|
|
chrome.settingsPrivate.getPref = function(name, callback) {};
|
|
|
|
/**
|
|
* Gets the default page zoom factor. Possible values are currently between 0.25
|
|
* and 5. For a full list, see zoom::kPresetZoomFactors.
|
|
* @param {function(number):void} callback
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefaultZoom
|
|
*/
|
|
chrome.settingsPrivate.getDefaultZoom = function(callback) {};
|
|
|
|
/**
|
|
* Sets the page zoom factor. Must be less than 0.001 different than a value in
|
|
* zoom::kPresetZoomFactors.
|
|
* @param {number} zoom
|
|
* @param {function(boolean):void=} callback
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefaultZoom
|
|
*/
|
|
chrome.settingsPrivate.setDefaultZoom = function(zoom, callback) {};
|
|
|
|
/**
|
|
* <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that
|
|
* changed.</p>
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsChanged
|
|
*/
|
|
chrome.settingsPrivate.onPrefsChanged;
|