mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
37b9846f69be931d18ccb58baea0cb35caee9aab
* Add roll printing sample * Copied heavily from existing printing sample * Changed functionality from existing printing sample as follows: * Only display printers that support roll printing * In table, create a row for each unique width for each printer * Fix wording in README * Update readme to list a milestone for bug to get fixed * Update api-samples/printing/roll-printing/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/printing/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Convert a function call to a promise. * Clean up a few errors setting element IDs. Remove the main cancel button that is no longer used. Instead, the cancel button that gets created in the print job table is the one that should be used. * Consolidate the roll-printing sample with the regular sample There is now a checkbox on the main UI to select roll printers or all printers. For roll printing, this sample now demonstrates how to check if the printer is capable of roll printing, if the printer is capable of trimming the paper after printing, and how the media length can be a variable value. * Update api-samples/printing/README.md Co-authored-by: Oliver Dunk <oliver@oliverdunk.com> * Update api-samples/printing/printers.js Co-authored-by: Oliver Dunk <oliver@oliverdunk.com> * Simplify fuction to use find instead of filter Update README to link to roll printing info. * Use new page instead of popup * Update api-samples/printing/README.md Co-authored-by: Joe Medley <jmedley@google.com> --------- Co-authored-by: Joe Medley <jmedley@google.com> Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
Chrome Extensions samples
Official samples for Chrome Extensions and the Chrome Apps platform. (Chrome Apps are deprecated. Learn more on the Chromium blog).
For more information on extensions, see Chrome Developers.
Explore samples
The directory structure is as follows:
- api-samples/ - extensions focused on a single API package
- functional-samples/ - full featured extensions spanning multiple API packages
- _archive/apps/ - deprecated Chrome Apps platform (not listed below)
- _archive/mv2/ - resources for manifest version 2
You can also use the Samples page to discover extensions by type, permissions, and extension API.
Installation
To experiment with these samples, please clone this repo and use 'Load Unpacked Extension'. Read more on Development Basics.
Contributing
Please see the CONTRIBUTING file for information on contributing to the chrome-extensions-samples project.
License
chrome-extensions-samples are authored by Google and are licensed under the Apache License, Version 2.0.
Description
Languages
JavaScript
85.1%
HTML
8.3%
CSS
4.2%
C++
1%
Perl
0.4%
Other
0.9%