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:56:58 +00:00
|
|
|
#ifndef SHELL_RENDERER_PRINTING_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|
|
|
|
#define SHELL_RENDERER_PRINTING_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|
2018-11-09 03:42:34 +00:00
|
|
|
|
|
|
|
#include "components/printing/renderer/print_render_frame_helper.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2018-11-09 03:42:34 +00:00
|
|
|
|
|
|
|
class PrintRenderFrameHelperDelegate
|
|
|
|
: public printing::PrintRenderFrameHelper::Delegate {
|
|
|
|
public:
|
|
|
|
PrintRenderFrameHelperDelegate();
|
|
|
|
~PrintRenderFrameHelperDelegate() override;
|
|
|
|
|
2021-11-03 11:41:45 +00:00
|
|
|
// disable copy
|
|
|
|
PrintRenderFrameHelperDelegate(const PrintRenderFrameHelperDelegate&) =
|
|
|
|
delete;
|
|
|
|
PrintRenderFrameHelperDelegate& operator=(
|
|
|
|
const PrintRenderFrameHelperDelegate&) = delete;
|
|
|
|
|
2018-11-09 03:42:34 +00:00
|
|
|
private:
|
|
|
|
// printing::PrintRenderFrameHelper::Delegate:
|
|
|
|
blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
|
|
|
|
bool IsPrintPreviewEnabled() override;
|
|
|
|
bool OverridePrint(blink::WebLocalFrame* frame) override;
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2018-11-09 03:42:34 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_RENDERER_PRINTING_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|