From c8a36c891df118834322cb9e1b1742a7fd2d6f13 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Thu, 13 Jan 2011 20:50:03 +0000 Subject: Fix canary build break due to printBegin change. TBR=jschuh Review URL: http://codereview.chromium.org/6325001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71353 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/mocks/mock_webframe.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'webkit/mocks') diff --git a/webkit/mocks/mock_webframe.h b/webkit/mocks/mock_webframe.h index bdf4c58..335690d 100644 --- a/webkit/mocks/mock_webframe.h +++ b/webkit/mocks/mock_webframe.h @@ -29,6 +29,7 @@ using WebKit::WebFormElement; using WebKit::WebFrame; using WebKit::WebHistoryItem; using WebKit::WebInputElement; +using WebKit::WebNode; using WebKit::WebPasswordAutocompleteListener; using WebKit::WebPerformance; using WebKit::WebRange; @@ -266,8 +267,15 @@ class MockWebFrame : public WebKit::WebFrame { virtual bool selectWordAroundCaret() { return false; } - virtual int printBegin(const WebSize& pageSize, int printerDPI = 72, +#if defined(WEBFRAME_PRINTBEGIN_TAKES_NODE) + virtual int printBegin(const WebSize& pageSize, + const WebNode& constrainToNode, + int printerDPI = 72, bool* useBrowserOverlays = 0) { +#else +virtual int printBegin(const WebSize& pageSize, int printerDPI = 72, + bool* useBrowserOverlays = 0) { +#endif return 0; } virtual float getPrintPageShrink(int page) { -- cgit v1.1