OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "0" }, | 2 "version": { "major": "1", "minor": "0" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "SystemInfo", | 4 "domain": "SystemInfo", |
5 "description": "The SystemInfo domain defines methods and events for que
rying low-level system information.", | 5 "description": "The SystemInfo domain defines methods and events for que
rying low-level system information.", |
6 "hidden": true, | 6 "hidden": true, |
7 "types": [ | 7 "types": [ |
8 { | 8 { |
9 "id": "GPUDevice", | 9 "id": "GPUDevice", |
10 "type": "object", | 10 "type": "object", |
(...skipping 29 matching lines...) Expand all Loading... |
40 "commands": [ | 40 "commands": [ |
41 { | 41 { |
42 "name": "getInfo", | 42 "name": "getInfo", |
43 "description": "Returns information about the system.", | 43 "description": "Returns information about the system.", |
44 "returns": [ | 44 "returns": [ |
45 { "name": "info", "$ref": "SystemInfo", "description": "Info
rmation about the system." } | 45 { "name": "info", "$ref": "SystemInfo", "description": "Info
rmation about the system." } |
46 ], | 46 ], |
47 "handlers": ["browser"] | 47 "handlers": ["browser"] |
48 } | 48 } |
49 ] | 49 ] |
| 50 }, |
| 51 { |
| 52 "domain": "Tethering", |
| 53 "description": "The Tethering domain defines methods and events for brow
ser port binding.", |
| 54 "hidden": true, |
| 55 "commands": [ |
| 56 { |
| 57 "name": "bind", |
| 58 "description": "Request browser port binding.", |
| 59 "parameters": [ |
| 60 { "name": "port", "type": "number", "description": "Port num
ber to bind." } |
| 61 ], |
| 62 "handlers": ["browser"] |
| 63 }, |
| 64 { |
| 65 "name": "unbind", |
| 66 "description": "Request browser port unbinding.", |
| 67 "parameters": [ |
| 68 { "name": "port", "type": "number", "description": "Port num
ber to unbind." } |
| 69 ], |
| 70 "handlers": ["browser"] |
| 71 } |
| 72 ], |
| 73 "events": [ |
| 74 { |
| 75 "name": "accepted", |
| 76 "description": "Informs that port was successfully bound and got
a specified connection id.", |
| 77 "parameters": [ |
| 78 {"name": "port", "type": "number", "description": "Port numb
er that was successfully bound." }, |
| 79 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } |
| 80 ], |
| 81 "handlers": ["browser"] |
| 82 } |
| 83 ] |
50 }] | 84 }] |
51 } | 85 } |
OLD | NEW |