1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
8 #include "components/printing/renderer/print_web_view_helper.h"
10 namespace android_webview
{
12 class AwPrintWebViewHelperDelegate
13 : public printing::PrintWebViewHelper::Delegate
{
15 ~AwPrintWebViewHelperDelegate() override
;
16 bool CancelPrerender(content::RenderView
* render_view
,
17 int routing_id
) override
;
18 blink::WebElement
GetPdfElement(blink::WebLocalFrame
* frame
) override
;
19 bool IsOutOfProcessPdfEnabled() override
;
20 bool IsPrintPreviewEnabled() override
;
21 bool IsAskPrintSettingsEnabled() override
;
22 bool IsScriptedPrintEnabled() override
;
23 bool OverridePrint(blink::WebLocalFrame
* frame
) override
;
24 }; // class AwPrintWebViewHelperDelegate
26 } // namespace android_webview
28 #endif // ANDROID_WEBVIEW_RENDERER_AW_PRINT_WEB_VIEW_HELPER_DELEGATE_H_