| Index: chrome/renderer/print_web_view_helper.h
|
| ===================================================================
|
| --- chrome/renderer/print_web_view_helper.h (revision 25608)
|
| +++ chrome/renderer/print_web_view_helper.h (working copy)
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
|
| -#define CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
|
| +#ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
|
| +#define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
|
|
|
| #include <vector>
|
|
|
| @@ -20,6 +20,13 @@
|
| class Message;
|
| }
|
|
|
| +#if defined(OS_LINUX)
|
| +namespace printing {
|
| +class PdfPsMetafile;
|
| +typedef PdfPsMetafile NativeMetafile;
|
| +}
|
| +#endif
|
| +
|
| class RenderView;
|
| class WebView;
|
| struct ViewMsg_Print_Params;
|
| @@ -88,9 +95,16 @@
|
| WebKit::WebFrame* web_frame);
|
|
|
| // Prints the page listed in |params|.
|
| +#if defined(OS_LINUX)
|
| void PrintPage(const ViewMsg_PrintPage_Params& params,
|
| const gfx::Size& canvas_size,
|
| + WebKit::WebFrame* frame,
|
| + printing::NativeMetafile* metafile);
|
| +#else
|
| + void PrintPage(const ViewMsg_PrintPage_Params& params,
|
| + const gfx::Size& canvas_size,
|
| WebKit::WebFrame* frame);
|
| +#endif
|
|
|
| // Prints all the pages listed in |params|.
|
| // It will implicitly revert the document to display CSS media type.
|
| @@ -129,4 +143,4 @@
|
| DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
|
| };
|
|
|
| -#endif // CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
|
| +#endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
|
|
|