| 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", |
| 11 "properties": [ | 11 "properties": [ |
| 12 { "name": "vendorId", "type": "number", "description": "PCI
ID of the GPU vendor, if available; 0 otherwise." }, | 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." }, | 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." }, | 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." } | 15 { "name": "deviceString", "type": "string", "description": "
String description of the GPU device, if the PCI ID is not available." } |
| 16 ], | 16 ], |
| 17 "description": "Describes a single graphics processor (GPU)." | 17 "description": "Describes a single graphics processor (GPU)." |
| 18 }, | 18 }, |
| 19 { | 19 { |
| 20 "id": "GPUInfo", | 20 "id": "GPUInfo", |
| 21 "type": "object", | 21 "type": "object", |
| 22 "properties": [ | 22 "properties": [ |
| 23 { "name": "devices", "type": "array", "items": { "$ref": "GP
UDevice" }, "description": "The graphics devices on the system. Element 0 is the
primary GPU." }, | 23 { "name": "devices", "type": "array", "items": { "$ref": "GP
UDevice" }, "description": "The graphics devices on the system. Element 0 is the
primary GPU." }, |
| 24 { "name": "auxAttributes", "type": "object", "optional": "tr
ue", "description": "An optional dictionary of additional GPU related attributes
." }, | 24 { "name": "auxAttributes", "type": "object", "optional": "tr
ue", "description": "An optional dictionary of additional GPU related attributes
." }, |
| 25 { "name": "featureStatus", "type": "object", "optional": "tr
ue", "description": "An optional dictionary of graphics features and their statu
s." }, | 25 { "name": "featureStatus", "type": "object", "optional": "tr
ue", "description": "An optional dictionary of graphics features and their statu
s." }, |
| 26 { "name": "driverBugWorkarounds", "type": "array", "items":
{ "type": "string" }, "description": "An optional array of GPU driver bug workar
ounds." } | 26 { "name": "driverBugWorkarounds", "type": "array", "items":
{ "type": "string" }, "description": "An optional array of GPU driver bug workar
ounds." } |
| 27 ], | 27 ], |
| 28 "description": "Provides information about the GPU(s) on the sys
tem." | 28 "description": "Provides information about the GPU(s) on the sys
tem." |
| 29 }, |
| 30 { |
| 31 "id": "SystemInfo", |
| 32 "type": "object", |
| 33 "properties": [ |
| 34 { "name": "gpu", "$ref": "GPUInfo", "description": "Informat
ion about the GPUs on the system." }, |
| 35 { "name": "modelName", "type": "string", "description": "A p
latform-dependent description of the model of the machine. On Mac OS, this is, f
or example, 'MacBookPro 10.1'. Will be the empty string if not supported." } |
| 36 ], |
| 37 "description": "Provides information about the system." |
| 29 } | 38 } |
| 30 ], | 39 ], |
| 31 "commands": [ | 40 "commands": [ |
| 32 { | 41 { |
| 33 "name": "getInfo", | 42 "name": "getInfo", |
| 34 "description": "Returns information about the system.", | 43 "description": "Returns information about the system.", |
| 35 "returns": [ | 44 "returns": [ |
| 36 { "name": "gpu", "$ref": "GPUInfo", "description": "Informat
ion about the GPUs on the system." }, | 45 { "name": "info", "$ref": "SystemInfo", "description": "Info
rmation about the system." } |
| 37 { "name": "modelName", "type": "string", "description": "A p
latform-dependent description of the model of the machine. On Mac OS, this is, f
or 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 ], | 46 ], |
| 40 "handlers": ["browser"] | 47 "handlers": ["browser"] |
| 41 } | 48 } |
| 42 ] | 49 ] |
| 43 }, | 50 }, |
| 44 { | 51 { |
| 45 "domain": "Tethering", | 52 "domain": "Tethering", |
| 46 "description": "The Tethering domain defines methods and events for brow
ser port binding.", | 53 "description": "The Tethering domain defines methods and events for brow
ser port binding.", |
| 47 "hidden": true, | 54 "hidden": true, |
| 48 "commands": [ | 55 "commands": [ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 71 "description": "Informs that port was successfully bound and got
a specified connection id.", | 78 "description": "Informs that port was successfully bound and got
a specified connection id.", |
| 72 "parameters": [ | 79 "parameters": [ |
| 73 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, | 80 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, |
| 74 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } | 81 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } |
| 75 ], | 82 ], |
| 76 "handlers": ["browser"] | 83 "handlers": ["browser"] |
| 77 } | 84 } |
| 78 ] | 85 ] |
| 79 }] | 86 }] |
| 80 } | 87 } |
| OLD | NEW |