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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 7065011: Change printing of PDFs for preview on Windows to not rasterize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 9 years, 7 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
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 2a4f1ff3b45f33b01c5e4a7bf1bb6c9477663510..656636031cd223b9fb85d62303c46cfa0d43eed1 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -21,12 +21,6 @@ struct PrintMsg_Print_Params;
struct PrintMsg_PrintPage_Params;
struct PrintMsg_PrintPages_Params;
-#if defined(USE_X11)
-namespace skia {
-class VectorCanvas;
-}
-#endif
-
// Class that calls the Begin and End print functions on the frame and changes
// the size of the view temporarily to support full page printing..
// Do not serve any events in the time between construction and destruction of
@@ -53,6 +47,8 @@ class PrepareFrameAndViewForPrint {
return print_canvas_size_;
}
+ void FinishPrinting();
+
private:
WebKit::WebFrame* frame_;
WebKit::WebView* web_view_;
@@ -61,6 +57,7 @@ class PrepareFrameAndViewForPrint {
gfx::Size prev_scroll_offset_;
int expected_pages_count_;
bool use_browser_overlays_;
+ bool finished_;
DISALLOW_COPY_AND_ASSIGN(PrepareFrameAndViewForPrint);
};
@@ -165,8 +162,7 @@ class PrintWebViewHelper : public RenderViewObserver ,
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
const gfx::Size& canvas_size,
WebKit::WebFrame* frame,
- printing::Metafile* metafile,
- scoped_ptr<skia::VectorCanvas>* canvas);
+ printing::Metafile* metafile);
#else
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
const gfx::Size& canvas_size,
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | chrome/renderer/print_web_view_helper_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698