2018-11-09 03:42:34 +00:00
|
|
|
// Copyright (c) 2018 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/renderer/printing/print_render_frame_helper_delegate.h"
|
2018-11-09 03:42:34 +00:00
|
|
|
|
|
|
|
#include "content/public/renderer/render_frame.h"
|
|
|
|
#include "third_party/blink/public/web/web_element.h"
|
|
|
|
#include "third_party/blink/public/web/web_local_frame.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2018-11-09 03:42:34 +00:00
|
|
|
|
|
|
|
PrintRenderFrameHelperDelegate::PrintRenderFrameHelperDelegate() = default;
|
|
|
|
|
|
|
|
PrintRenderFrameHelperDelegate::~PrintRenderFrameHelperDelegate() = default;
|
|
|
|
|
|
|
|
bool PrintRenderFrameHelperDelegate::CancelPrerender(
|
|
|
|
content::RenderFrame* render_frame) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return the PDF object element if |frame| is the out of process PDF extension.
|
|
|
|
blink::WebElement PrintRenderFrameHelperDelegate::GetPdfElement(
|
|
|
|
blink::WebLocalFrame* frame) {
|
|
|
|
return blink::WebElement();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool PrintRenderFrameHelperDelegate::IsPrintPreviewEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool PrintRenderFrameHelperDelegate::OverridePrint(
|
|
|
|
blink::WebLocalFrame* frame) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|