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

Side by Side Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 8312003: When printing a PDF, query and use the print scaling disabled option. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // require: cr/ui/print_preview_cloud.js 5 // require: cr/ui/print_preview_cloud.js
6 6
7 var localStrings = new LocalStrings(); 7 var localStrings = new LocalStrings();
8 8
9 // If useCloudPrint is true we attempt to connect to cloud print 9 // If useCloudPrint is true we attempt to connect to cloud print
10 // and populate the list of printers with cloud print printers. 10 // and populate the list of printers with cloud print printers.
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 'copies': copiesSettings.numberOfCopies, 349 'copies': copiesSettings.numberOfCopies,
350 'collate': copiesSettings.isCollated(), 350 'collate': copiesSettings.isCollated(),
351 'landscape': layoutSettings.isLandscape(), 351 'landscape': layoutSettings.isLandscape(),
352 'color': colorSettings.colorMode, 352 'color': colorSettings.colorMode,
353 'printToPDF': printToPDF, 353 'printToPDF': printToPDF,
354 'printWithCloudPrint': printWithCloudPrint, 354 'printWithCloudPrint': printWithCloudPrint,
355 'isFirstRequest' : false, 355 'isFirstRequest' : false,
356 'headerFooterEnabled': headerFooterSettings.hasHeaderFooter(), 356 'headerFooterEnabled': headerFooterSettings.hasHeaderFooter(),
357 'marginsType': marginSettings.selectedMarginsValue, 357 'marginsType': marginSettings.selectedMarginsValue,
358 'requestID': -1, 358 'requestID': -1,
359 'generateDraftData': generateDraftData}; 359 'generateDraftData': generateDraftData,
360 'previewModifiable': previewModifiable};
360 361
361 if (marginSettings.isCustomMarginsSelected()) 362 if (marginSettings.isCustomMarginsSelected())
362 settings['marginsCustom'] = marginSettings.customMargins; 363 settings['marginsCustom'] = marginSettings.customMargins;
363 364
364 var printerList = $('printer-list'); 365 var printerList = $('printer-list');
365 var selectedPrinter = printerList.selectedIndex; 366 var selectedPrinter = printerList.selectedIndex;
366 if (cloudprint.isCloudPrint(printerList.options[selectedPrinter])) { 367 if (cloudprint.isCloudPrint(printerList.options[selectedPrinter])) {
367 settings['cloudPrintID'] = 368 settings['cloudPrintID'] =
368 printerList.options[selectedPrinter].value; 369 printerList.options[selectedPrinter].value;
369 } 370 }
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 <include src="copies_settings.js"/> 1108 <include src="copies_settings.js"/>
1108 <include src="header_footer_settings.js"/> 1109 <include src="header_footer_settings.js"/>
1109 <include src="layout_settings.js"/> 1110 <include src="layout_settings.js"/>
1110 <include src="color_settings.js"/> 1111 <include src="color_settings.js"/>
1111 <include src="margin_settings.js"/> 1112 <include src="margin_settings.js"/>
1112 <include src="margin_textbox.js"/> 1113 <include src="margin_textbox.js"/>
1113 <include src="margin_line.js"/> 1114 <include src="margin_line.js"/>
1114 <include src="margin_utils.js"/> 1115 <include src="margin_utils.js"/>
1115 <include src="margins_ui.js"/> 1116 <include src="margins_ui.js"/>
1116 <include src="preview_area.js"/> 1117 <include src="preview_area.js"/>
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698