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

Unified Diff: chrome/browser/resources/print_preview/data/destination_store.js

Issue 1407353003: Expose more paper sizes when printing to PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more paper sizes for PDF output Created 5 years, 2 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: chrome/browser/resources/print_preview/data/destination_store.js
diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
index 86465a5a46c7ad18f6c21d0bdbbc8b2f718f2b60..e7c4541e1c11e794472f505fc97cbc10cd759128 100644
--- a/chrome/browser/resources/print_preview/data/destination_store.js
+++ b/chrome/browser/resources/print_preview/data/destination_store.js
@@ -341,11 +341,17 @@ cr.define('print_preview', function() {
var mediaSize = capabilities.printer.media_size;
if (mediaSize) {
var mediaDisplayNames = {
- 'ISO_A4': 'A4',
+ 'ISO_A0': 'A0',
+ 'ISO_A1': 'A1',
+ 'ISO_A2': 'A2',
'ISO_A3': 'A3',
- 'NA_LETTER': 'Letter',
+ 'ISO_A4': 'A4',
+ 'ISO_A5': 'A5',
'NA_LEGAL': 'Legal',
- 'NA_LEDGER': 'Tabloid'
+ 'NA_LETTER': 'Letter',
+ 'NA_LEDGER': 'Tabloid',
+ 'OM_UK_BUSINESS_CARD': 'UK Business card',
+ 'OM_US_BUSINESS_CARD': 'US Business card'
};
for (var i = 0, media; media = mediaSize.option[i]; i++) {
// No need to patch capabilities with localized names provided.

Powered by Google App Engine
This is Rietveld 408576698