Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / content / browser / devtools / browser_protocol.json
blob51388e0aaa8002f5fc1f6f9f3283090d899cdefe
2     "version": { "major": "1", "minor": "0" },
3     "domains": [{
4         "domain": "SystemInfo",
5         "description": "The SystemInfo domain defines methods and events for querying low-level system information.",
6         "hidden": true,
7         "types": [
8             {
9                 "id": "GPUDevice",
10                 "type": "object",
11                 "properties": [
12                     { "name": "vendorId", "type": "number", "description": "PCI ID of the GPU vendor, if available; 0 otherwise." },
13                     { "name": "deviceId", "type": "number", "description": "PCI ID of the GPU device, if available; 0 otherwise." },
14                     { "name": "vendorString", "type": "string", "description": "String description of the GPU vendor, if the PCI ID is not available." },
15                     { "name": "deviceString", "type": "string", "description": "String description of the GPU device, if the PCI ID is not available." }
16                 ],
17                 "description": "Describes a single graphics processor (GPU)."
18             },
19             {
20                 "id": "GPUInfo",
21                 "type": "object",
22                 "properties": [
23                     { "name": "devices", "type": "array", "items": { "$ref": "GPUDevice" }, "description": "The graphics devices on the system. Element 0 is the primary GPU." },
24                     { "name": "auxAttributes", "type": "object", "optional": "true", "description": "An optional dictionary of additional GPU related attributes." },
25                     { "name": "featureStatus", "type": "object", "optional": "true", "description": "An optional dictionary of graphics features and their status." },
26                     { "name": "driverBugWorkarounds", "type": "array", "items": { "type": "string" }, "description": "An optional array of GPU driver bug workarounds." }
27                 ],
28                 "description": "Provides information about the GPU(s) on the system."
29             }
30         ],
31         "commands": [
32             {
33                 "name": "getInfo",
34                 "description": "Returns information about the system.",
35                 "returns": [
36                     { "name": "gpu", "$ref": "GPUInfo", "description": "Information about the GPUs on the system." },
37                     { "name": "modelName", "type": "string", "description": "A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported." },
38                     { "name": "modelVersion", "type": "string", "description": "A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported." }
39                 ],
40                 "handlers": ["browser"]
41             }
42         ]
43     },
44     {
45         "domain": "Tethering",
46         "description": "The Tethering domain defines methods and events for browser port binding.",
47         "hidden": true,
48         "commands": [
49             {
50                 "name": "bind",
51                 "async": true,
52                 "description": "Request browser port binding.",
53                 "parameters": [
54                     { "name": "port", "type": "integer", "description": "Port number to bind." }
55                 ],
56                 "handlers": ["browser"]
57             },
58             {
59                 "name": "unbind",
60                 "async": true,
61                 "description": "Request browser port unbinding.",
62                 "parameters": [
63                     { "name": "port", "type": "integer", "description": "Port number to unbind." }
64                 ],
65                 "handlers": ["browser"]
66             }
67         ],
68         "events": [
69             {
70                 "name": "accepted",
71                 "description": "Informs that port was successfully bound and got a specified connection id.",
72                 "parameters": [
73                     {"name": "port", "type": "integer", "description": "Port number that was successfully bound." },
74                     {"name": "connectionId", "type": "string", "description": "Connection id to be used." }
75                 ],
76                 "handlers": ["browser"]
77             }
78         ]
79     }]