1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
headless / lib / renderer / headless_print_render_frame_helper_delegate.h [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef HEADLESS_LIB_RENDERER_HEADLESS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#define HEADLESS_LIB_RENDERER_HEADLESS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#include "components/printing/renderer/print_render_frame_helper.h"
namespace headless {
class HeadlessPrintRenderFrameHelperDelegate
: public printing::PrintRenderFrameHelper::Delegate {
public:
HeadlessPrintRenderFrameHelperDelegate();
HeadlessPrintRenderFrameHelperDelegate(
const HeadlessPrintRenderFrameHelperDelegate&) = delete;
HeadlessPrintRenderFrameHelperDelegate& operator=(
const HeadlessPrintRenderFrameHelperDelegate&) = delete;
~HeadlessPrintRenderFrameHelperDelegate() override;
private:
// printing::PrintRenderFrameHelper::Delegate:
bool IsPrintPreviewEnabled() override;
bool ShouldGenerateTaggedPDF() override;
bool OverridePrint(blink::WebLocalFrame* frame) override;
blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
};
} // namespace headless
#endif // HEADLESS_LIB_RENDERER_HEADLESS_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_