Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: third_party/closure_compiler/externs/settings_private.js

Issue 1310373008: Add cr_policy_indicator for settings controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_settings_compiled_resources_3
Patch Set: Elim unused tyep Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/settings_private.js
diff --git a/third_party/closure_compiler/externs/settings_private.js b/third_party/closure_compiler/externs/settings_private.js
index 8cc4619e8cba4e1bbe1a2f034c0831f07a53861b..712736f7bbfca9132eecc36e36c45a2dcc986fc4 100644
--- a/third_party/closure_compiler/externs/settings_private.js
+++ b/third_party/closure_compiler/externs/settings_private.js
@@ -1,3 +1,14 @@
+// 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.settingsPrivate.FooType'.
+// Please run the closure compiler before committing changes.
+// See https://code.google.com/p/chromium/wiki/ClosureCompilation.
+
/** @fileoverview Externs generated from namespace: settingsPrivate */
/**
@@ -24,6 +35,9 @@ chrome.settingsPrivate.PrefType = {
chrome.settingsPrivate.PolicySource = {
DEVICE: 'DEVICE',
USER: 'USER',
+ OWNER: 'OWNER',
+ PRIMARY_USER: 'PRIMARY_USER',
+ EXTENSION: 'EXTENSION',
};
/**
@@ -41,11 +55,12 @@ chrome.settingsPrivate.PolicyEnforcement = {
* type: !chrome.settingsPrivate.PrefType,
* value: *,
* policySource: (!chrome.settingsPrivate.PolicySource|undefined),
- * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined)
+ * policyEnforcement: (!chrome.settingsPrivate.PolicyEnforcement|undefined),
+ * recommendedValue: (*|undefined)
* }}
* @see https://developer.chrome.com/extensions/settingsPrivate#type-PrefObject
*/
-var PrefObject;
+chrome.settingsPrivate.PrefObject;
/**
* Sets a settings value.
@@ -60,7 +75,7 @@ chrome.settingsPrivate.setPref = function(name, value, pageId, callback) {};
/**
* Gets an array of all the prefs.
- * @param {function(!Array<PrefObject>):void} callback
+ * @param {function(!Array<!chrome.settingsPrivate.PrefObject>):void} callback
* @see https://developer.chrome.com/extensions/settingsPrivate#method-getAllPrefs
*/
chrome.settingsPrivate.getAllPrefs = function(callback) {};
@@ -68,7 +83,7 @@ chrome.settingsPrivate.getAllPrefs = function(callback) {};
/**
* Gets the value of a specific pref.
* @param {string} name
- * @param {function(PrefObject):void} callback
+ * @param {function(!chrome.settingsPrivate.PrefObject):void} callback
* @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref
*/
chrome.settingsPrivate.getPref = function(name, callback) {};

Powered by Google App Engine
This is Rietveld 408576698