summaryrefslogtreecommitdiffstats
path: root/webkit/mocks
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 20:50:03 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 20:50:03 +0000
commitc8a36c891df118834322cb9e1b1742a7fd2d6f13 (patch)
treeb4e2b06c5fc4d223f181aa4eb8d8c0c9fa496645 /webkit/mocks
parenta9601f47c08d07afa2ac4a5ae22a8f7ab9e402e0 (diff)
downloadchromium_src-c8a36c891df118834322cb9e1b1742a7fd2d6f13.zip
chromium_src-c8a36c891df118834322cb9e1b1742a7fd2d6f13.tar.gz
chromium_src-c8a36c891df118834322cb9e1b1742a7fd2d6f13.tar.bz2
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
Diffstat (limited to 'webkit/mocks')
-rw-r--r--webkit/mocks/mock_webframe.h10
1 files changed, 9 insertions, 1 deletions
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) {