OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 [ | 5 [ |
6 { | 6 { |
7 "namespace":"networkingPrivate", | 7 "namespace":"networkingPrivate", |
8 "description": "none", | 8 "description": "none", |
9 "compiler_options": { | 9 "compiler_options": { |
10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ
king_private_api.h" | 10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ
king_private_api.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 "deviceBssid": { | 52 "deviceBssid": { |
53 "type": "string", | 53 "type": "string", |
54 "description": "A string containing the BSSID of the device. Only s
et if the device has already been setup." | 54 "description": "A string containing the BSSID of the device. Only s
et if the device has already been setup." |
55 } | 55 } |
56 } | 56 } |
57 }, | 57 }, |
58 { | 58 { |
59 "id": "NetworkType", | 59 "id": "NetworkType", |
60 "type": "string", | 60 "type": "string", |
61 "enum": ["Ethernet", "WiFi", "Cellular"] | 61 "enum": ["Ethernet", "WiFi", "Cellular"] |
| 62 }, |
| 63 { |
| 64 "id": "CaptivePortalStatus", |
| 65 "type": "string", |
| 66 "enum": ["Unknown", "Offline", "Online", "Portal", "ProxyAuthRequired"] |
62 } | 67 } |
63 ], | 68 ], |
64 "functions": [ | 69 "functions": [ |
65 { | 70 { |
66 "name": "getProperties", | 71 "name": "getProperties", |
67 "description": "Gets all the properties of the network with id networkGu
id. Includes all properties of the network (read-only and read/write values).", | 72 "description": "Gets all the properties of the network with id networkGu
id. Includes all properties of the network (read-only and read/write values).", |
68 "parameters": [ | 73 "parameters": [ |
69 { | 74 { |
70 "name": "networkGuid", | 75 "name": "networkGuid", |
71 "type": "string", | 76 "type": "string", |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 "type": "function", | 400 "type": "function", |
396 "parameters": [ | 401 "parameters": [ |
397 { | 402 { |
398 "name": "status", | 403 "name": "status", |
399 "type": "string" | 404 "type": "string" |
400 } | 405 } |
401 ], | 406 ], |
402 "description": "A callback function that receives a string with the
current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonex
istent', or 'Unknown'" | 407 "description": "A callback function that receives a string with the
current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonex
istent', or 'Unknown'" |
403 } | 408 } |
404 ] | 409 ] |
| 410 }, |
| 411 { |
| 412 "name": "getCaptivePortalStatus", |
| 413 "description": "Returns captive portal status for the network with netwo
rkGuid.", |
| 414 "parameters": [ |
| 415 { |
| 416 "name": "networkGuid", |
| 417 "type": "string", |
| 418 "description": "The unique identifier of the network to get captive
portal status." |
| 419 }, |
| 420 { |
| 421 "name": "callback", |
| 422 "type": "function", |
| 423 "parameters": [ |
| 424 { |
| 425 "name": "status", |
| 426 "$ref": "CaptivePortalStatus", |
| 427 "description": "Results of the query for network captive portal
status." |
| 428 } |
| 429 ] |
| 430 } |
| 431 ] |
405 } | 432 } |
406 ], | 433 ], |
407 "events": [ | 434 "events": [ |
408 { | 435 { |
409 "name": "onNetworksChanged", | 436 "name": "onNetworksChanged", |
410 "type": "function", | 437 "type": "function", |
411 "description": "Fired when the properties change on any of the networks.
Sends a list of identifiers for networks whose properties have changed.", | 438 "description": "Fired when the properties change on any of the networks.
Sends a list of identifiers for networks whose properties have changed.", |
412 "parameters": [ | 439 "parameters": [ |
413 { | 440 { |
414 "name": "changes", | 441 "name": "changes", |
(...skipping 10 matching lines...) Expand all Loading... |
425 { | 452 { |
426 "name": "changes", | 453 "name": "changes", |
427 "type": "array", | 454 "type": "array", |
428 "items": { "type": "string" } | 455 "items": { "type": "string" } |
429 } | 456 } |
430 ] | 457 ] |
431 } | 458 } |
432 ] | 459 ] |
433 } | 460 } |
434 ] | 461 ] |
OLD | NEW |