Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6192)

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 172115: Pass printing result to the browser.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698