Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1724)

Unified Diff: Source/devtools/browser_protocol.json

Issue 22980005: Documented SystemInfo domain in DevTools protocol. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed SystemInfo domain from protocol.json. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/browser_protocol.json
diff --git a/Source/devtools/browser_protocol.json b/Source/devtools/browser_protocol.json
new file mode 100644
index 0000000000000000000000000000000000000000..e2fe2df9e08febe22388ca67515837f17c91e13d
--- /dev/null
+++ b/Source/devtools/browser_protocol.json
@@ -0,0 +1,48 @@
+{
+ "version": { "major": "1", "minor": "0" },
+ "domains": [{
+ "domain": "SystemInfo",
+ "description": "The SystemInfo domain defines methods and events for querying low-level system information.",
+ "hidden": true,
+ "types": [
+ {
+ "id": "GPUDevice",
+ "type": "object",
+ "properties": [
+ { "name": "vendorId", "type": "number", "description": "PCI ID of the GPU vendor, if available; 0 otherwise." },
+ { "name": "deviceId", "type": "number", "description": "PCI ID of the GPU device, if available; 0 otherwise." },
+ { "name": "vendorString", "type": "string", "description": "String description of the GPU vendor, if the PCI ID is not available." },
+ { "name": "deviceString", "type": "string", "description": "String description of the GPU device, if the PCI ID is not available." }
+ ],
+ "description": "Describes a single graphics processor (GPU)."
+ },
+ {
+ "id": "GPUInfo",
+ "type": "object",
+ "properties": [
+ { "name": "gpus", "type": "array", "items": { "$ref": "GPUDevice" }, "description": "The GPU(s) on the system. Element 0 is the primary GPU." },
pfeldman 2013/08/14 19:31:37 nit: "devices" is more pleasant to my non-native e
Ken Russell (switch to Gerrit) 2013/08/14 21:17:51 Fine, I'll rename it.
+ { "name": "auxAttributes", "type": "object", "optional": "true", "description": "An optional dictionary of additional GPU related attributes." }
+ ],
+ "description": "Provides information about the GPU(s) on the system."
+ },
+ {
+ "id": "SystemInfo",
+ "type": "object",
+ "properties": [
+ { "name": "gpu", "$ref": "GPUInfo", "description": "Information about the GPUs on the system." },
+ { "name": "machineModel", "type": "string", "description": "A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro 10.1'. Will be the empty string if not supported." }
pfeldman 2013/08/14 19:31:37 nit: Should we follow System Information naming he
Ken Russell (switch to Gerrit) 2013/08/14 21:17:51 I'll rename it "modelName". It doesn't really corr
+ ],
+ "description": "Provides information about the system."
+ }
+ ],
+ "commands": [
+ {
+ "name": "getInfo",
+ "description": "Returns information about the system.",
+ "returns": [
+ { "name": "info", "$ref": "SystemInfo", "description": "Information about the system." }
+ ]
+ }
+ ]
+ }]
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698