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

Unified Diff: components/printing/renderer/print_web_view_helper.h

Issue 2122083002: Move CSS3 Paged Media interface into WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 5 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: components/printing/renderer/print_web_view_helper.h
diff --git a/components/printing/renderer/print_web_view_helper.h b/components/printing/renderer/print_web_view_helper.h
index fe33d5e6374be65cacd9f96029347e2c62415051..dd8d24d5b42458d47c615562d768d84f8d291e8f 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -45,6 +45,7 @@ class DictionaryValue;
namespace blink {
class WebFrame;
+class WebLocalFrame;
class WebView;
}
@@ -261,7 +262,7 @@ class PrintWebViewHelper
#if defined(ENABLE_BASIC_PRINTING)
void OnFramePreparedForPrintPages();
void PrintPages();
- bool PrintPagesNative(blink::WebFrame* frame, int page_count);
+ bool PrintPagesNative(blink::WebLocalFrame* frame, int page_count);
void FinishFramePrinting();
// Render the frame for printing.
bool RenderPagesForPrint(blink::WebLocalFrame* frame,
@@ -271,10 +272,10 @@ class PrintWebViewHelper
// Prints the page listed in |params|.
#if defined(OS_MACOSX)
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
- blink::WebFrame* frame);
+ blink::WebLocalFrame* frame);
#else
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
- blink::WebFrame* frame,
+ blink::WebLocalFrame* frame,
PdfMetafileSkia* metafile,
gfx::Size* page_size_in_dpi,
gfx::Rect* content_area_in_dpi);
@@ -284,7 +285,7 @@ class PrintWebViewHelper
#if defined(OS_MACOSX)
void RenderPage(const PrintMsg_Print_Params& params,
int page_number,
- blink::WebFrame* frame,
+ blink::WebLocalFrame* frame,
bool is_preview,
PdfMetafileSkia* metafile,
gfx::Size* page_size,
@@ -309,7 +310,7 @@ class PrintWebViewHelper
// Helper method to get page layout in points and fit to page if needed.
static void ComputePageLayoutInPointsForCss(
- blink::WebFrame* frame,
+ blink::WebLocalFrame* frame,
int page_index,
const PrintMsg_Print_Params& default_params,
bool ignore_css_margins,
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | third_party/WebKit/public/web/WebLocalFrame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698