mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Move printing-related methods from WebFrame to WebLocalFrame.
https://codereview.chromium.org/2923343005
This commit is contained in:
committed by
Cheng Zhao
parent
e4d9e12ee5
commit
4ac9659114
@@ -339,7 +339,7 @@ blink::WebView* FrameReference::view() {
|
||||
}
|
||||
|
||||
// static - Not anonymous so that platform implementations can use it.
|
||||
float PrintWebViewHelper::RenderPageContent(blink::WebFrame* frame,
|
||||
float PrintWebViewHelper::RenderPageContent(blink::WebLocalFrame* frame,
|
||||
int page_number,
|
||||
const gfx::Rect& canvas_area,
|
||||
const gfx::Rect& content_area,
|
||||
|
||||
@@ -32,7 +32,6 @@ class DictionaryValue;
|
||||
}
|
||||
|
||||
namespace blink {
|
||||
class WebFrame;
|
||||
class WebView;
|
||||
}
|
||||
|
||||
@@ -216,7 +215,7 @@ class PrintWebViewHelper
|
||||
// |page_number| is zero-based.
|
||||
// When method is called, canvas should be setup to draw to |canvas_area|
|
||||
// with |scale_factor|.
|
||||
static float RenderPageContent(blink::WebFrame* frame,
|
||||
static float RenderPageContent(blink::WebLocalFrame* frame,
|
||||
int page_number,
|
||||
const gfx::Rect& canvas_area,
|
||||
const gfx::Rect& content_area,
|
||||
|
||||
Reference in New Issue
Block a user