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

Side by Side Diff: third_party/closure_compiler/externs/networking_private.js

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file was generated by: 5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py. 6 // ./tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now 7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.networkingPrivate.FooType'. 8 // 'chrome.networkingPrivate.FooType'.
9 // Please run the closure compiler before committing changes. 9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 * networkType: !chrome.networkingPrivate.NetworkType, 1005 * networkType: !chrome.networkingPrivate.NetworkType,
1006 * visible: (boolean|undefined), 1006 * visible: (boolean|undefined),
1007 * configured: (boolean|undefined), 1007 * configured: (boolean|undefined),
1008 * limit: (number|undefined) 1008 * limit: (number|undefined)
1009 * }} 1009 * }}
1010 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkFi lter 1010 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkFi lter
1011 */ 1011 */
1012 chrome.networkingPrivate.NetworkFilter; 1012 chrome.networkingPrivate.NetworkFilter;
1013 1013
1014 /** 1014 /**
1015 * @typedef {{
1016 * AllowOnlyPolicyNetworksToAutoconnect: (boolean|undefined),
1017 * AllowOnlyPolicyNetworksToConnect: (boolean|undefined)
1018 * }}
1019 * @see https://developer.chrome.com/extensions/networkingPrivate#type-GlobalPol icy
1020 */
1021 chrome.networkingPrivate.GlobalPolicy;
1022
1023 /**
1015 * Gets all the properties of the network with id networkGuid. Includes all 1024 * Gets all the properties of the network with id networkGuid. Includes all
1016 * properties of the network (read-only and read/write values). 1025 * properties of the network (read-only and read/write values).
1017 * @param {string} networkGuid The GUID of the network to get properties for. 1026 * @param {string} networkGuid The GUID of the network to get properties for.
1018 * @param {function(!chrome.networkingPrivate.NetworkProperties):void} callback 1027 * @param {function(!chrome.networkingPrivate.NetworkProperties):void} callback
1019 * Called with the network properties when received. 1028 * Called with the network properties when received.
1020 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getProp erties 1029 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getProp erties
1021 */ 1030 */
1022 chrome.networkingPrivate.getProperties = function(networkGuid, callback) {}; 1031 chrome.networkingPrivate.getProperties = function(networkGuid, callback) {};
1023 1032
1024 /** 1033 /**
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 * @param {string} networkGuid The GUID of the cellular network to set the SIM 1292 * @param {string} networkGuid The GUID of the cellular network to set the SIM
1284 * state of. If empty, the default cellular device will be used. 1293 * state of. If empty, the default cellular device will be used.
1285 * @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state to 1294 * @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state to
1286 * set. 1295 * set.
1287 * @param {function():void=} callback Called when the operation has completed. 1296 * @param {function():void=} callback Called when the operation has completed.
1288 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setCell ularSimState 1297 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setCell ularSimState
1289 */ 1298 */
1290 chrome.networkingPrivate.setCellularSimState = function(networkGuid, simState, c allback) {}; 1299 chrome.networkingPrivate.setCellularSimState = function(networkGuid, simState, c allback) {};
1291 1300
1292 /** 1301 /**
1302 * Gets the global policy properties. These properties are not expected to
1303 * change during a session.
1304 * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback
1305 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGlob alPolicy
1306 */
1307 chrome.networkingPrivate.getGlobalPolicy = function(callback) {};
1308
1309 /**
1293 * Fired when the properties change on any of the networks. Sends a list of 1310 * Fired when the properties change on any of the networks. Sends a list of
1294 * GUIDs for networks whose properties have changed. 1311 * GUIDs for networks whose properties have changed.
1295 * @type {!ChromeEvent} 1312 * @type {!ChromeEvent}
1296 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged 1313 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged
1297 */ 1314 */
1298 chrome.networkingPrivate.onNetworksChanged; 1315 chrome.networkingPrivate.onNetworksChanged;
1299 1316
1300 /** 1317 /**
1301 * Fired when the list of networks has changed. Sends a complete list of GUIDs 1318 * Fired when the list of networks has changed. Sends a complete list of GUIDs
1302 * for all the current networks. 1319 * for all the current networks.
(...skipping 10 matching lines...) Expand all
1313 */ 1330 */
1314 chrome.networkingPrivate.onDeviceStateListChanged; 1331 chrome.networkingPrivate.onDeviceStateListChanged;
1315 1332
1316 /** 1333 /**
1317 * Fired when a portal detection for a network completes. Sends the guid of the 1334 * Fired when a portal detection for a network completes. Sends the guid of the
1318 * network and the corresponding captive portal status. 1335 * network and the corresponding captive portal status.
1319 * @type {!ChromeEvent} 1336 * @type {!ChromeEvent}
1320 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted 1337 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted
1321 */ 1338 */
1322 chrome.networkingPrivate.onPortalDetectionCompleted; 1339 chrome.networkingPrivate.onPortalDetectionCompleted;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698