diff options
Diffstat (limited to 'chrome/renderer/pepper/chrome_pdf_print_client.h')
-rw-r--r-- | chrome/renderer/pepper/chrome_pdf_print_client.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/renderer/pepper/chrome_pdf_print_client.h b/chrome/renderer/pepper/chrome_pdf_print_client.h new file mode 100644 index 0000000..0ae3224 --- /dev/null +++ b/chrome/renderer/pepper/chrome_pdf_print_client.h @@ -0,0 +1,24 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_CLIENT_H_ +#define CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_CLIENT_H_ + +#include "base/macros.h" +#include "components/pdf/renderer/ppb_pdf_impl.h" + +class ChromePDFPrintClient : public pdf::PPB_PDF_Impl::PrintClient { + public: + ChromePDFPrintClient(); + virtual ~ChromePDFPrintClient(); + + private: + // pdf::PPB_PDF_Impl::PrintClient: + virtual bool IsPrintingEnabled(PP_Instance instance_id) OVERRIDE; + virtual void Print(PP_Instance instance_id) OVERRIDE; + + DISALLOW_COPY_AND_ASSIGN(ChromePDFPrintClient); +}; + +#endif // CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_CLIENT_H_ |