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", | |
pneubeck (no reviews)
2013/01/18 13:22:36
I just found this page about IDL for new extension
Greg Spencer (Chromium)
2013/01/18 19:53:56
Interesting. I haven't seen that. For now, since
| |
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" }, | |
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"} } | |
53 } | |
54 ] | |
55 } | |
56 ] | |
57 }, | |
58 { | |
59 "name": "requestConnect", | |
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", | |
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 |