Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "0" }, | 2 "version": { "major": "1", "minor": "0" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Inspector", | 4 "domain": "Inspector", |
| 5 "hidden": true, | 5 "hidden": true, |
| 6 "types": [], | 6 "types": [], |
| 7 "commands": [ | 7 "commands": [ |
| 8 { | 8 { |
| 9 "name": "enable", | 9 "name": "enable", |
| 10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
| (...skipping 3800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3811 { | 3811 { |
| 3812 "name": "dataCollected", | 3812 "name": "dataCollected", |
| 3813 "parameters": [ | 3813 "parameters": [ |
| 3814 { "name": "value", "type": "array", "items": { "type": "obje ct" } } | 3814 { "name": "value", "type": "array", "items": { "type": "obje ct" } } |
| 3815 ] | 3815 ] |
| 3816 }, | 3816 }, |
| 3817 { | 3817 { |
| 3818 "name": "tracingComplete" | 3818 "name": "tracingComplete" |
| 3819 } | 3819 } |
| 3820 ] | 3820 ] |
| 3821 }, | |
| 3822 { | |
| 3823 "domain": "SystemInfo", | |
|
pfeldman
2013/08/14 09:12:58
You are declaring this domain on the "renderer" ta
Ken Russell (switch to Gerrit)
2013/08/14 19:10:24
OK, I've created a new browser_protocol.json and m
| |
| 3824 "description": "The SystemInfo domain defines methods and events for que rying low-level system information.", | |
| 3825 "hidden": true, | |
| 3826 "types": [ | |
| 3827 { | |
| 3828 "id": "GPUDevice", | |
| 3829 "type": "object", | |
| 3830 "properties": [ | |
| 3831 { "name": "vendorId", "type": "number", "description": "PCI ID of the GPU vendor, if available; 0 otherwise." }, | |
| 3832 { "name": "deviceId", "type": "number", "description": "PCI ID of the GPU device, if available; 0 otherwise." }, | |
| 3833 { "name": "vendorString", "type": "string", "description": " String description of the GPU vendor, if the PCI ID is not available." }, | |
| 3834 { "name": "deviceString", "type": "string", "description": " String description of the GPU device, if the PCI ID is not available." } | |
| 3835 ], | |
| 3836 "description": "Describes a single graphics processor (GPU)." | |
| 3837 }, | |
| 3838 { | |
| 3839 "id": "GPUInfo", | |
| 3840 "type": "object", | |
| 3841 "properties": [ | |
| 3842 { "name": "gpu", "$ref": "GPUDevice", "description": "The pr imary GPU on the system." }, | |
| 3843 { "name": "secondaryGpus", "type": "array", "items": { "$ref ": "GPUDevice" }, "description": "The secondary GPUs, if any, on the system, or the empty array if none." }, | |
|
pfeldman
2013/08/14 09:12:58
We don't return empty arrays, but rather declare t
Ken Russell (switch to Gerrit)
2013/08/14 19:10:24
Restructured the GPUInfo object per your suggestio
| |
| 3844 { "name": "machineModel", "type": "string", "description": " A platform-dependent description of the model of the machine. On Mac OS, this is for example 'MacBookPro10,1'. Will be the empty string if not supported." }, | |
|
pfeldman
2013/08/14 09:12:58
This seems to be a part of the SystemInfo, but not
Ken Russell (switch to Gerrit)
2013/08/14 19:10:24
Created a new SystemInfo type and added machineMod
| |
| 3845 { "name": "optionalAttributes", "type": "object", "optional" : "true", "description": "An optional dictionary of additional GPU related attri butes." } | |
|
pfeldman
2013/08/14 09:12:58
To which GPU these correspond? Sounds like a part
Ken Russell (switch to Gerrit)
2013/08/14 19:10:24
They're general GPU-related attributes and don't c
| |
| 3846 ], | |
| 3847 "description": "Provides information about the GPU(s) on the sys tem." | |
| 3848 } | |
| 3849 ], | |
| 3850 "commands": [ | |
| 3851 { | |
| 3852 "name": "getGPUInfo", | |
| 3853 "description": "Returns information about the graphics processor (GPU).", | |
| 3854 "returns": [ | |
| 3855 { "name": "info", "$ref": "GPUInfo", "description": "Informa tion about the GPU on the system." } | |
| 3856 ] | |
| 3857 } | |
| 3858 ] | |
| 3821 }] | 3859 }] |
| 3822 } | 3860 } |
| OLD | NEW |