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

Unified Diff: components/cloud_devices/common/printer_description.cc

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
« no previous file with comments | « components/cloud_devices/common/printer_description.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cloud_devices/common/printer_description.cc
diff --git a/components/cloud_devices/common/printer_description.cc b/components/cloud_devices/common/printer_description.cc
index f8ebf6b09af5a0effbbe11f8c7c7f3300d80eafd..87cb9fe925311c16bad77b68305fcd6e885264dc 100644
--- a/components/cloud_devices/common/printer_description.cc
+++ b/components/cloud_devices/common/printer_description.cc
@@ -332,7 +332,9 @@ const struct MediaDefinition {
MAP_CLOUD_PRINT_MEDIA_TYPE(OM_LARGE_PHOTO, 200, 300, kMmToUm),
MAP_CLOUD_PRINT_MEDIA_TYPE(OM_FOLIO, 210, 330, kMmToUm),
MAP_CLOUD_PRINT_MEDIA_TYPE(OM_FOLIO_SP, 215, 315, kMmToUm),
- MAP_CLOUD_PRINT_MEDIA_TYPE(OM_INVITE, 220, 220, kMmToUm)};
+ MAP_CLOUD_PRINT_MEDIA_TYPE(OM_INVITE, 220, 220, kMmToUm),
+ MAP_CLOUD_PRINT_MEDIA_TYPE(OM_US_BUSINESS_CARD, 2, 3.5f, kInchToUm),
+ MAP_CLOUD_PRINT_MEDIA_TYPE(OM_UK_BUSINESS_CARD, 55, 85, kMmToUm)};
Aleksey Shlyapnikov 2015/11/05 00:44:29 Why do you need these new sizes? Where did you get
#undef MAP_CLOUD_PRINT_MEDIA_TYPE
const MediaDefinition& FindMediaByType(MediaType type) {
« no previous file with comments | « components/cloud_devices/common/printer_description.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698