2015-07-16 23:40:01 +02:00
|
|
|
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
#ifndef CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|
|
|
|
#define CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|
2015-07-16 23:40:01 +02:00
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
#include "components/printing/renderer/print_render_frame_helper.h"
|
2015-07-16 23:40:01 +02:00
|
|
|
|
|
|
|
namespace extensions {
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
class CefPrintRenderFrameHelperDelegate
|
|
|
|
: public printing::PrintRenderFrameHelper::Delegate {
|
2015-07-16 23:40:01 +02:00
|
|
|
public:
|
2019-07-17 20:47:27 +02:00
|
|
|
explicit CefPrintRenderFrameHelperDelegate(bool is_windowless);
|
2017-09-06 23:40:58 +02:00
|
|
|
~CefPrintRenderFrameHelperDelegate() override;
|
2015-07-16 23:40:01 +02:00
|
|
|
|
|
|
|
blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
|
|
|
|
bool IsPrintPreviewEnabled() override;
|
2022-12-14 20:51:03 +01:00
|
|
|
bool ShouldGenerateTaggedPDF() override;
|
2015-07-16 23:40:01 +02:00
|
|
|
bool OverridePrint(blink::WebLocalFrame* frame) override;
|
2019-07-17 20:47:27 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool is_windowless_;
|
2015-07-16 23:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace extensions
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
#endif // CEF_LIBCEF_RENDERER_EXTENSIONS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
|