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