Add preview failed error.
This commit is contained in:
parent
8572ccb807
commit
cef177abc4
4 changed files with 20 additions and 12 deletions
|
@ -141,14 +141,11 @@ void PrintPreviewMessageHandler::OnMetafileReadyForPrinting(
|
|||
params.preview_request_id));
|
||||
}
|
||||
|
||||
//void PrintPreviewMessageHandler::OnPrintPreviewFailed(int document_cookie) {
|
||||
//StopWorker(document_cookie);
|
||||
|
||||
////PrintPreviewUI* print_preview_ui = GetPrintPreviewUI();
|
||||
////if (!print_preview_ui)
|
||||
////return;
|
||||
////print_preview_ui->OnPrintPreviewFailed();
|
||||
//}
|
||||
void PrintPreviewMessageHandler::OnPrintPreviewFailed(int document_cookie,
|
||||
int request_id) {
|
||||
StopWorker(document_cookie);
|
||||
RunPrintToPDFCallback(request_id, FAIL_PREVIEW);
|
||||
}
|
||||
|
||||
//void PrintPreviewMessageHandler::OnDidGetDefaultPageLayout(
|
||||
//const PageSizeMargins& page_layout_in_points,
|
||||
|
@ -193,8 +190,8 @@ bool PrintPreviewMessageHandler::OnMessageReceived(
|
|||
OnDidPreviewPage)
|
||||
IPC_MESSAGE_HANDLER(PrintHostMsg_MetafileReadyForPrinting,
|
||||
OnMetafileReadyForPrinting)
|
||||
//IPC_MESSAGE_HANDLER(PrintHostMsg_PrintPreviewFailed,
|
||||
//OnPrintPreviewFailed)
|
||||
IPC_MESSAGE_HANDLER(PrintHostMsg_PrintPreviewFailed,
|
||||
OnPrintPreviewFailed)
|
||||
//IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetDefaultPageLayout,
|
||||
//OnDidGetDefaultPageLayout)
|
||||
//IPC_MESSAGE_HANDLER(PrintHostMsg_PrintPreviewCancelled,
|
||||
|
|
|
@ -73,7 +73,7 @@ class PrintPreviewMessageHandler
|
|||
void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
|
||||
void OnMetafileReadyForPrinting(
|
||||
const PrintHostMsg_DidPreviewDocument_Params& params);
|
||||
//void OnPrintPreviewFailed(int document_cookie);
|
||||
void OnPrintPreviewFailed(int document_cookie, int request_id);
|
||||
//void OnPrintPreviewCancelled(int document_cookie);
|
||||
//void OnInvalidPrinterSettings(int document_cookie);
|
||||
//void OnSetOptionsFromDocument(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue