Chromium Code Reviews| Index: chrome/renderer/printing/chrome_print_web_view_helper_delegate.h |
| diff --git a/chrome/renderer/printing/chrome_print_web_view_helper_delegate.h b/chrome/renderer/printing/chrome_print_web_view_helper_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9a3df8772be2389562513563897778b3be339530 |
| --- /dev/null |
| +++ b/chrome/renderer/printing/chrome_print_web_view_helper_delegate.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
|
Lei Zhang
2015/01/06 04:11:32
nit: no (c)
dgn
2015/01/06 16:35:31
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| +#define CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |
| + |
| +#include "chrome/renderer/printing/print_web_view_helper.h" |
| + |
| +namespace content { |
| +class RenderView; |
| +} |
| + |
| + |
| +class ChromePrintWebViewHelperDelegate |
| + : public printing::PrintWebViewHelper::Delegate { |
| + public: |
| + ~ChromePrintWebViewHelperDelegate() override; |
| + |
| + // If a scripted print needs to be cancelled, sends a message to do so. |
| + // Returns |true| if the message is successfully sent, |false| otherwise. |
| + bool CancelPrerender(content::RenderView* render_view, |
| + int routing_id) override; |
| + |
| + bool OutOfProcessPdfEnabled() const; |
| + |
| + bool PrintPreviewDisabled() const; |
| + |
| +}; // class ChromePrintWebViewHelperDelegate |
| + |
| +#endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_ |