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

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

Issue 208583007: Tunnel the CDD from the Print Preview javascript to the privet operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 526e14f23471a8c5dcc66dfe4d0253cf87cbbcdf..c40ec86cada837573b008f17ca880531f48a450c 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -283,7 +283,7 @@ cr.define('print_preview', function() {
'requestID': -1,
'fitToPageEnabled': printTicketStore.fitToPage.getValue(),
'pageWidth': documentInfo.pageSize.width,
- 'pageHeight': documentInfo.pageSize.height,
+ 'pageHeight': documentInfo.pageSize.height
};
if (!destination.isLocal) {
@@ -309,6 +309,7 @@ cr.define('print_preview', function() {
if (destination.isPrivet) {
ticket['ticket'] = printTicketStore.createPrintTicket(destination);
+ ticket['capabilities'] = JSON.stringify(destination.capabilities);
}
if (opt_isOpenPdfInPreview) {

Powered by Google App Engine
This is Rietveld 408576698