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

Unified Diff: android_webview/renderer/print_web_view_helper.h

Issue 559263002: Replaced Metafile with PdfMetafileSkia in renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 11 15:46:31 PDT 2014 Created 6 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
« no previous file with comments | « no previous file | android_webview/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/renderer/print_web_view_helper.h
diff --git a/android_webview/renderer/print_web_view_helper.h b/android_webview/renderer/print_web_view_helper.h
index b468f44b49df5e2a408159a4a18652879672bdc9..377882d61069172048705c5517046cc797174397 100644
--- a/android_webview/renderer/print_web_view_helper.h
+++ b/android_webview/renderer/print_web_view_helper.h
@@ -226,7 +226,7 @@ class PrintWebViewHelper
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
const gfx::Size& canvas_size,
blink::WebFrame* frame,
- Metafile* metafile);
+ PdfMetafileSkia* metafile);
#else
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
const gfx::Size& canvas_size,
@@ -243,7 +243,7 @@ class PrintWebViewHelper
int page_number,
blink::WebFrame* frame,
bool is_preview,
- Metafile* metafile,
+ PdfMetafileSkia* metafile,
double* scale_factor,
gfx::Size* page_size_in_dpi,
gfx::Rect* content_area_in_dpi);
@@ -252,7 +252,7 @@ class PrintWebViewHelper
int page_number,
blink::WebFrame* frame,
bool is_preview,
- Metafile* metafile,
+ PdfMetafileSkia* metafile,
gfx::Size* page_size,
gfx::Rect* content_rect);
#endif // defined(OS_WIN)
@@ -270,7 +270,7 @@ class PrintWebViewHelper
// Helper methods -----------------------------------------------------------
- bool CopyMetafileDataToSharedMem(Metafile* metafile,
+ bool CopyMetafileDataToSharedMem(PdfMetafileSkia* metafile,
base::SharedMemoryHandle* shared_mem_handle);
// Helper method to get page layout in points and fit to page if needed.
@@ -328,7 +328,7 @@ class PrintWebViewHelper
// For a valid |page_number| with modifiable content,
// |metafile| is the rendered page. Otherwise |metafile| is NULL.
// Returns true if print preview should continue, false on failure.
- bool PreviewPageRendered(int page_number, Metafile* metafile);
+ bool PreviewPageRendered(int page_number, PdfMetafileSkia* metafile);
// WebView used only to print the selection.
scoped_ptr<PrepareFrameAndViewForPrint> prep_frame_view_;
« no previous file with comments | « no previous file | android_webview/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698