Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [ | |
| 6 { | |
| 7 "namespace":"networkingPrivate", | |
| 8 "compiler_options": { | |
| 9 "implemented_in": "chrome/browser/chromeos/extensions/networking_private_a pi.h" | |
| 10 }, | |
| 11 "nodoc": "true", | |
|
not at google - send to devlin
2013/02/02 00:11:32
nodoc is unnecessary since you haven't added an HT
Greg Spencer (Chromium)
2013/02/02 01:06:15
Done.
| |
| 12 "platforms": ["chromeos"], | |
| 13 "types" : [ | |
| 14 { | |
| 15 "id": "NetworkProperties", | |
| 16 "type": "object", | |
| 17 "additionalProperties": { "type": "any" } | |
| 18 } | |
| 19 ], | |
| 20 "functions": [ | |
| 21 { | |
| 22 "name": "getProperties", | |
| 23 "description": "Gets the properties of the network with id networkGuid." , | |
| 24 "parameters": [ | |
| 25 { | |
| 26 "name": "networkGuid", | |
| 27 "type": "string", | |
| 28 "description": "The unique identifier of the network to get properti es from." | |
| 29 }, | |
| 30 { | |
| 31 "name": "callback", | |
| 32 "type": "function", | |
| 33 "parameters": [ | |
| 34 { | |
| 35 "name": "properties", | |
| 36 "$ref": "NetworkProperties", | |
| 37 "description": "Results of the query for network properties." | |
| 38 } | |
| 39 ] | |
| 40 } | |
| 41 ] | |
| 42 }, | |
| 43 { | |
| 44 "name": "getVisibleNetworks", | |
| 45 "description": "Gets the list of visible networks.", | |
| 46 "parameters": [ | |
| 47 { | |
| 48 "name": "type", | |
| 49 "type": "string", | |
| 50 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], | |
| 51 "description": "The type of networks to return." | |
| 52 }, | |
| 53 { | |
| 54 "name": "callback", | |
| 55 "type": "function", | |
| 56 "optional": true, | |
| 57 "parameters": [ | |
| 58 { | |
| 59 "name": "networkList", | |
| 60 "type": "array", | |
| 61 "items": { "$ref": "NetworkProperties" } | |
| 62 } | |
| 63 ] | |
| 64 } | |
| 65 ] | |
| 66 }, | |
| 67 { | |
| 68 "name": "startConnect", | |
| 69 "description": "Starts a connection to the network with networkGuid.", | |
| 70 "parameters": [ | |
| 71 { | |
| 72 "name": "networkGuid", | |
| 73 "type": "string", | |
| 74 "description": "The unique identifier of the network to connect to." | |
| 75 }, | |
| 76 { | |
| 77 "name": "callback", | |
| 78 "type": "function", | |
| 79 "optional": true, | |
| 80 "parameters": [], | |
| 81 "description": "A callback function that indicates that a connection has been initiated." | |
| 82 } | |
| 83 ] | |
| 84 }, | |
| 85 { | |
| 86 "name": "startDisconnect", | |
| 87 "description": "Starts a disconnect from the network with networkGuid.", | |
| 88 "parameters": [ | |
| 89 { | |
| 90 "name": "networkGuid", | |
| 91 "type": "string", | |
| 92 "description": "The unique identifier of the network to disconnect f rom." | |
| 93 }, | |
| 94 { | |
| 95 "name": "callback", | |
| 96 "type": "function", | |
| 97 "optional": true, | |
| 98 "parameters": [], | |
| 99 "description": "A callback function that indicates that a disconnect has been initiated." | |
| 100 } | |
| 101 ] | |
| 102 } | |
| 103 ] | |
| 104 } | |
| 105 ] | |
| OLD | NEW |