| 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 CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| 6 #define CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ | 6 #define CHROME_RENDERER_PRINTING_CHROME_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 class ChromePrintWebViewHelperDelegate |
| 11 : public printing::PrintWebViewHelper::Delegate { | 11 : public printing::PrintWebViewHelper::Delegate { |
| 12 public: | 12 public: |
| 13 ~ChromePrintWebViewHelperDelegate() override; | 13 ~ChromePrintWebViewHelperDelegate() override; |
| 14 | 14 |
| 15 bool CancelPrerender(content::RenderView* render_view, | 15 bool CancelPrerender(content::RenderView* render_view, |
| 16 int routing_id) override; | 16 int routing_id) override; |
| 17 | 17 |
| 18 blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override; | 18 blink::WebElement GetPdfElement(blink::WebLocalFrame* frame) override; |
| 19 | 19 |
| 20 bool IsOutOfProcessPdfEnabled() override; | |
| 21 | |
| 22 bool IsPrintPreviewEnabled() override; | 20 bool IsPrintPreviewEnabled() override; |
| 23 | 21 |
| 24 bool OverridePrint(blink::WebLocalFrame* frame) override; | 22 bool OverridePrint(blink::WebLocalFrame* frame) override; |
| 25 }; // class ChromePrintWebViewHelperDelegate | 23 }; // class ChromePrintWebViewHelperDelegate |
| 26 | 24 |
| 27 #endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ | 25 #endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| OLD | NEW |