* @param {!print_preview.PrintTicketStore} printTicketStore Used to get the
* state of the print ticket.
* @param {!print_preview.DocumentInfo} documentInfo Document data model.
- * @param {number} ID of the preview request.
+ * @param {number} requestId ID of the preview request.
*/
startGetPreview: function(
destination, printTicketStore, documentInfo, requestId) {
* @param {!print_preview.DocumentInfo} documentInfo Document data model.
* @param {boolean=} opt_isOpenPdfInPreview Whether to open the PDF in the
* system's preview application.
+ * @param {boolean=} opt_showSystemDialog Whether to open system dialog for
+ * advanced settings.
*/
startPrint: function(destination, printTicketStore, cloudPrintInterface,
- documentInfo, opt_isOpenPdfInPreview) {
+ documentInfo, opt_isOpenPdfInPreview,
+ opt_showSystemDialog) {
assert(printTicketStore.isTicketValid(),
'Trying to print when ticket is not valid');
+ assert(!opt_showSystemDialog || (cr.isWindows && destination.isLocal),
+ 'Implemented for Windows only');
+
var ticket = {
'pageRange': printTicketStore.pageRange.getDocumentPageRanges(),
'mediaSize': printTicketStore.mediaSize.getValue(),
'requestID': -1,
'fitToPageEnabled': printTicketStore.fitToPage.getValue(),
'pageWidth': documentInfo.pageSize.width,
- 'pageHeight': documentInfo.pageSize.height
+ 'pageHeight': documentInfo.pageSize.height,
+ 'showSystemDialog': opt_showSystemDialog
};
if (!destination.isLocal) {
/** Shows the system's native printing dialog. */
startShowSystemDialog: function() {
+ assert(!cr.isWindows);
chrome.send('showSystemDialog');
},
/**
* Turn on the integration of Cloud Print.
- * @param {string} cloudPrintURL The URL to use for cloud print servers.
+ * @param {{cloudPrintURL: string, appKioskMode: string}} settings
+ * cloudPrintUrl: The URL to use for cloud print servers.
* @private
*/
onSetUseCloudPrint_: function(settings) {
/**
* Called when native layer gets settings information for a requested local
* destination.
- * @param {string} printerId printer affected by error.
+ * @param {string} destinationId Printer affected by error.
* @private
*/
onFailedToGetPrinterCapabilities_: function(destinationId) {
/**
* Called when native layer gets settings information for a requested privet
* destination.
- * @param {string} printerId printer affected by error.
+ * @param {string} destinationId Printer affected by error.
* @private
*/
onFailedToGetPrivetPrinterCapabilities_: function(destinationId) {