Add preview failed error.
This commit is contained in:
parent
8572ccb807
commit
cef177abc4
4 changed files with 20 additions and 12 deletions
|
@ -724,7 +724,6 @@ void PrintWebViewHelper::OnPrintPreview(const base::DictionaryValue& settings) {
|
|||
}
|
||||
|
||||
LOG(ERROR) << "OnPrintPreview2";
|
||||
//SetPrintPagesParams(settings)
|
||||
if (!UpdatePrintSettings(print_preview_context_.source_frame(),
|
||||
print_preview_context_.source_node(), settings)) {
|
||||
DidFinishPrinting(FAIL_PREVIEW);
|
||||
|
@ -938,6 +937,15 @@ void PrintWebViewHelper::DidFinishPrinting(PrintingResult result) {
|
|||
Send(new PrintHostMsg_PrintingFailed(routing_id(), cookie));
|
||||
}
|
||||
break;
|
||||
|
||||
case FAIL_PREVIEW:
|
||||
LOG(ERROR) << "PREVIEW FAILED.";
|
||||
if (print_pages_params_) {
|
||||
Send(new PrintHostMsg_PrintPreviewFailed(routing_id(),
|
||||
print_pages_params_->params.document_cookie,
|
||||
print_pages_params_->params.preview_request_id));
|
||||
}
|
||||
break;
|
||||
}
|
||||
prep_frame_view_.reset();
|
||||
print_pages_params_.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue