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

Unified Diff: extensions/common/api/extensions_manifest_types.json

Issue 1123093003: Add a manifest property declaring USB printers supported by an app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interfaceProtocol documentation. Created 5 years, 7 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
Index: extensions/common/api/extensions_manifest_types.json
diff --git a/extensions/common/api/extensions_manifest_types.json b/extensions/common/api/extensions_manifest_types.json
index 1829174ae7b25e9c1f0b64f103bbbb65efb08cb3..4837c9edc2c65f7443d073164a16a6448a145b9b 100644
--- a/extensions/common/api/extensions_manifest_types.json
+++ b/extensions/common/api/extensions_manifest_types.json
@@ -162,6 +162,46 @@
"optional": true
}
}
+ },
+ {
+ "id": "UsbPrinters",
+ "type": "object",
+ "description": "The <code>usb_printers</code> manifest property lists the USB printers supported by an app implementing the $(ref:printerProvider) API.",
+ "properties": {
+ "filters": {
+ "description": "A list of $(ref:usb.DeviceFilter USB device filters) matching supported devices. A device only needs to match one of the provided filters. A <code>vendorId</code> is required and only one of <code>productId</code> or <code>interfaceClass</code> may be provided.",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "vendorId": {
+ "description": "USB vendor ID of matching devices",
+ "type": "integer"
+ },
+ "productId": {
+ "description": "USB product ID of matching devices",
+ "type": "integer",
+ "optional": true
+ },
+ "interfaceClass": {
+ "description": "USB interface class implemented by any interface of a matching device.",
+ "type": "integer",
+ "optional": true
+ },
+ "interfaceSubclass": {
+ "description": "USB interface sub-class implemented by the interface matching $(ref:interfaceClass).",
+ "type": "integer",
+ "optional": true
+ },
+ "interfaceProtocol": {
+ "description": "USB interface protocol implemented by the interface matching $(ref:interfaceClass) and $(ref:interfaceSubclass).",
+ "type": "integer",
+ "optional": true
+ }
+ }
+ }
+ }
+ }
}
]
}
« no previous file with comments | « extensions/common/api/_manifest_features.json ('k') | extensions/common/api/printer_provider/usb_printer_manifest_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698