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": "extensions/browser/api/networking_private/networking_pr
ivate_api.h" | 10 "implemented_in": "extensions/browser/api/networking_private/networking_pr
ivate_api.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 "type": "string", | 148 "type": "string", |
149 "description": "The unique identifier of the network to set properti
es on." | 149 "description": "The unique identifier of the network to set properti
es on." |
150 }, | 150 }, |
151 { | 151 { |
152 "name": "properties", | 152 "name": "properties", |
153 "$ref": "NetworkProperties", | 153 "$ref": "NetworkProperties", |
154 "description": "The properties to set on the network." | 154 "description": "The properties to set on the network." |
155 }, | 155 }, |
156 { | 156 { |
157 "name": "callback", | 157 "name": "callback", |
| 158 "optional": true, |
158 "type": "function", | 159 "type": "function", |
159 "parameters": [] | 160 "parameters": [] |
160 } | 161 } |
161 ] | 162 ] |
162 }, | 163 }, |
163 { | 164 { |
164 "name": "createNetwork", | 165 "name": "createNetwork", |
165 "description": "Creates a new network configuration from properties. If
a matching configured network already exists, this will fail. Otherwise returns
the guid of the new network.", | 166 "description": "Creates a new network configuration from properties. If
a matching configured network already exists, this will fail. Otherwise returns
the guid of the new network.", |
166 "parameters": [ | 167 "parameters": [ |
167 { | 168 { |
168 "name": "shared", | 169 "name": "shared", |
169 "type": "boolean", | 170 "type": "boolean", |
170 "description": "If true, share this network configuration with other
users." | 171 "description": "If true, share this network configuration with other
users." |
171 }, | 172 }, |
172 { | 173 { |
173 "name": "properties", | 174 "name": "properties", |
174 "$ref": "NetworkProperties", | 175 "$ref": "NetworkProperties", |
175 "description": "The properties to configure the new network with." | 176 "description": "The properties to configure the new network with." |
176 }, | 177 }, |
177 { | 178 { |
178 "name": "callback", | 179 "name": "callback", |
| 180 "optional": true, |
179 "type": "function", | 181 "type": "function", |
180 "parameters": [ | 182 "parameters": [ |
181 { | 183 { |
182 "name": "networkGuid", | 184 "name": "networkGuid", |
183 "type": "string" | 185 "type": "string" |
184 } | 186 } |
185 ] | 187 ] |
186 } | 188 } |
187 ] | 189 ] |
188 }, | 190 }, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 "type": "string", | 419 "type": "string", |
418 "description": "The IP or MAC address of the peer with which to enab
le a TDLS connection." | 420 "description": "The IP or MAC address of the peer with which to enab
le a TDLS connection." |
419 }, | 421 }, |
420 { | 422 { |
421 "name": "enabled", | 423 "name": "enabled", |
422 "type": "boolean", | 424 "type": "boolean", |
423 "description": "If true, enable TDLS, otherwise disable TDLS." | 425 "description": "If true, enable TDLS, otherwise disable TDLS." |
424 }, | 426 }, |
425 { | 427 { |
426 "name": "callback", | 428 "name": "callback", |
| 429 "optional": true, |
427 "type": "function", | 430 "type": "function", |
428 "parameters": [ | 431 "parameters": [ |
429 { | 432 { |
430 "name": "status", | 433 "name": "status", |
431 "type": "string" | 434 "type": "string" |
432 } | 435 } |
433 ], | 436 ], |
434 "description": "A callback function that receives a string with an e
rror or the current TDLS status. 'Failed' indicates that the request failed (e.g
. MAC address lookup failed). 'Timeout' indicates that the lookup timed out. Oth
erwise a valid status is returned (see getWifiTDLSStatus)." | 437 "description": "A callback function that receives a string with an e
rror or the current TDLS status. 'Failed' indicates that the request failed (e.g
. MAC address lookup failed). 'Timeout' indicates that the lookup timed out. Oth
erwise a valid status is returned (see getWifiTDLSStatus)." |
435 } | 438 } |
436 ] | 439 ] |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 }, | 519 }, |
517 { | 520 { |
518 "name": "status", | 521 "name": "status", |
519 "$ref": "CaptivePortalStatus" | 522 "$ref": "CaptivePortalStatus" |
520 } | 523 } |
521 ] | 524 ] |
522 } | 525 } |
523 ] | 526 ] |
524 } | 527 } |
525 ] | 528 ] |
OLD | NEW |