summaryrefslogtreecommitdiffstats
path: root/webkit/mocks
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/mocks')
-rw-r--r--webkit/mocks/mock_webframe.cc2
-rw-r--r--webkit/mocks/mock_webframe.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/webkit/mocks/mock_webframe.cc b/webkit/mocks/mock_webframe.cc
index cf382c3..8a36e8d 100644
--- a/webkit/mocks/mock_webframe.cc
+++ b/webkit/mocks/mock_webframe.cc
@@ -44,6 +44,8 @@ WebSize MockWebFrame::scrollOffset() const {
return WebSize(0,0);
}
+void MockWebFrame::setScrollOffset(const WebSize&) {}
+
WebSize MockWebFrame::contentsSize() const {
return WebSize();
}
diff --git a/webkit/mocks/mock_webframe.h b/webkit/mocks/mock_webframe.h
index e49029d..cabd3c5 100644
--- a/webkit/mocks/mock_webframe.h
+++ b/webkit/mocks/mock_webframe.h
@@ -71,6 +71,7 @@ class MockWebFrame : public WebKit::WebFrame {
virtual WebString encoding() const;
virtual void setCanHaveScrollbars(bool);
virtual WebSize scrollOffset() const;
+ virtual void setScrollOffset(const WebSize&);
virtual WebSize contentsSize() const;
virtual int contentsPreferredWidth() const;
virtual int documentElementScrollHeight() const;