forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aw_print_render_frame_helper_delegate.h
34 lines (25 loc) · 1.14 KB
/
aw_print_render_frame_helper_delegate.h
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
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ANDROID_WEBVIEW_RENDERER_AW_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#define ANDROID_WEBVIEW_RENDERER_AW_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#include "components/printing/renderer/print_render_frame_helper.h"
namespace android_webview {
class AwPrintRenderFrameHelperDelegate
: public printing::PrintRenderFrameHelper::Delegate {
public:
AwPrintRenderFrameHelperDelegate();
AwPrintRenderFrameHelperDelegate(const AwPrintRenderFrameHelperDelegate&) =
delete;
AwPrintRenderFrameHelperDelegate& operator=(
const AwPrintRenderFrameHelperDelegate&) = delete;
~AwPrintRenderFrameHelperDelegate() override;
private:
// printing::PrintRenderFrameHelper::Delegate:
blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override;
bool IsPrintPreviewEnabled() override;
bool IsScriptedPrintEnabled() override;
bool OverridePrint(blink::WebLocalFrame* frame) override;
};
} // namespace android_webview
#endif // ANDROID_WEBVIEW_RENDERER_AW_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_