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

Unified Diff: chrome/common/extensions/docs/templates/articles/manifest/usb_printers.html

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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/json/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/templates/articles/manifest/usb_printers.html
diff --git a/chrome/common/extensions/docs/templates/articles/manifest/usb_printers.html b/chrome/common/extensions/docs/templates/articles/manifest/usb_printers.html
new file mode 100644
index 0000000000000000000000000000000000000000..c8b9635b95634d047570b506779c799631d03eaa
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/articles/manifest/usb_printers.html
@@ -0,0 +1,28 @@
+<h1>Manifest - USB Printers</h1>
+
+<p>
+The <code>usbPrinters</code> manifest property declares which USB printers are supported by an app using the $(ref:printerProvider) API.
+</p>
+
+<h2 id="manifest">Sample manifest.json</h2>
+<pre data-filename="manifest.json">
+{
+ "name": "My printer {{platform}}",
+ "usb_printers": {
+ "filters": [
+ // This app can print to the Nexus One and any printer made by Google.
+ { "vendorId": 6353, "productId": 19985 },
+ { "vendorId": 6353, "interfaceClass": 7 }
+ ]
+ },
+ ...
+}
+</pre>
+
+<section>
+<h2 id="reference">Reference</h2>
+<p class="api_reference">
+{{+partials.manifest_type
+ type:apis.apps.extensionsManifestTypes.byName.UsbPrinters/}}
+</p>
+</section>
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/json/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698