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

Unified Diff: chrome/browser/resources/print_preview/native_layer.js

Issue 2795453002: Use DPI from Print Preview on Windows, handle non square (Closed)
Patch Set: Address comments Created 3 years, 9 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 | printing/print_job_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/native_layer.js
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
index 6b522fe1988cb55c253e89a8d4295276c51f0eac..652c87cc8799b9cd0bd1c109d909364d267e44d0 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -312,6 +312,10 @@ cr.define('print_preview', function() {
'copies': 1,
'collate': true,
'rasterizePDF': false,
+ 'dpiHorizontal': "horizontal_dpi" in printTicketStore.dpi.getValue() ?
+ printTicketStore.dpi.getValue().horizontal_dpi : 0,
+ 'dpiVertical': "vertical_dpi" in printTicketStore.dpi.getValue() ?
+ printTicketStore.dpi.getValue().vertical_dpi : 0,
'shouldPrintBackgrounds': printTicketStore.cssBackground.getValue(),
'shouldPrintSelectionOnly': printTicketStore.selectionOnly.getValue()
};
@@ -387,6 +391,10 @@ cr.define('print_preview', function() {
'printWithExtension': destination.isExtension,
'rasterizePDF': printTicketStore.rasterize.getValue(),
'scaleFactor': printTicketStore.scaling.getValueAsNumber(),
+ 'dpiHorizontal': "horizontal_dpi" in printTicketStore.dpi.getValue() ?
+ printTicketStore.dpi.getValue().horizontal_dpi : 0,
+ 'dpiVertical': "vertical_dpi" in printTicketStore.dpi.getValue() ?
+ printTicketStore.dpi.getValue().vertical_dpi : 0,
'deviceName': destination.id,
'isFirstRequest': false,
'requestID': -1,
« no previous file with comments | « no previous file | printing/print_job_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698