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 "nodoc": "true", | |
9 "functions": [ | |
10 { | |
11 "name": "getProperties", | |
12 "description": "Gets the properties of the network with id networkGuid." , | |
13 "parameters": [ | |
14 { | |
15 "name": "networkGuid", | |
16 "type": "string", | |
17 "description": "The unique identifier of the network to get properti es from." | |
18 }, | |
19 { | |
20 "name": "callback", | |
21 "type": "function", | |
22 "parameters": [ | |
23 { | |
24 "name": "properties", | |
25 "type": "object", | |
26 "additionalProperties": { "type": "any" }, | |
not at google - send to devlin
2013/01/23 22:37:52
Why isn't it possible to enumerate the properties?
Greg Spencer (Chromium)
2013/01/31 16:40:36
It is possible, but will have to be kept in sync w
not at google - send to devlin
2013/02/01 19:09:42
Yeah, I have a strong preference to making this an
Greg Spencer (Chromium)
2013/02/01 23:35:55
No, it's not really practical because we already h
not at google - send to devlin
2013/02/02 00:11:32
Ah, I didn't realise these were rich structures, I
| |
27 "description": "Results of the query for network properties." | |
28 } | |
29 ] | |
30 } | |
31 ] | |
32 }, | |
33 { | |
34 "name": "getVisibleNetworks", | |
35 "description": "Gets the list of visible networks.", | |
36 "parameters": [ | |
37 { | |
38 "name": "type", | |
39 "type": "string", | |
40 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], | |
41 "description": "The type of networks to return." | |
42 }, | |
43 { | |
44 "name": "callback", | |
45 "type": "function", | |
46 "optional": true, | |
47 "parameters": [ | |
48 { | |
49 "name": "networkList", | |
50 "type": "array", | |
51 "items": { "type": "object", | |
52 "additionalProperties": { "type": "any"} } | |
not at google - send to devlin
2013/01/23 22:37:52
Ditto. In fact will this be the same data as retur
Greg Spencer (Chromium)
2013/01/31 16:40:36
Good point. I defined it as a type.
| |
53 } | |
54 ] | |
55 } | |
56 ] | |
57 }, | |
58 { | |
59 "name": "requestConnect", | |
not at google - send to devlin
2013/01/23 22:37:52
"request" seems tautological, since an API call is
Greg Spencer (Chromium)
2013/01/31 16:40:36
Well, but the reason it's a "request" is because w
not at google - send to devlin
2013/02/01 19:09:42
Ok - so to make sure I understand - there are two
Greg Spencer (Chromium)
2013/02/01 23:35:55
There is an event coming in a later CL that will p
| |
60 "description": "Connects to the network with networkGuid.", | |
61 "parameters": [ | |
62 { | |
63 "name": "networkGuid", | |
64 "type": "string", | |
65 "description": "The unique identifier of the network to connect to." | |
66 }, | |
67 { | |
68 "name": "callback", | |
69 "type": "function", | |
70 "optional": true, | |
71 "parameters": [], | |
72 "description": "A callback function that indicates that a connection has been initiated." | |
73 } | |
74 ] | |
75 }, | |
76 { | |
77 "name": "requestDisconnect", | |
not at google - send to devlin
2013/01/23 22:37:52
ditto
| |
78 "description": "Requests a disconnect from the network with networkGuid. ", | |
79 "parameters": [ | |
80 { | |
81 "name": "networkGuid", | |
82 "type": "string", | |
83 "description": "The unique identifier of the network to disconnect f rom." | |
84 }, | |
85 { | |
86 "name": "callback", | |
87 "type": "function", | |
88 "optional": true, | |
89 "parameters": [], | |
90 "description": "A callback function that indicates that a disconnect has been initiated." | |
91 } | |
92 ] | |
93 } | |
94 ] | |
95 } | |
96 ] | |
OLD | NEW |