summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
authorjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 22:24:58 +0000
committerjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 22:24:58 +0000
commit2ef6527547e597552e34159294574b74471fd636 (patch)
tree6e35434a86f82c0c18280126900fa61fa3121840 /webkit/tools/test_shell/test_webview_delegate.cc
parent4fd471b77191784cf988bd30d4194ba670ba8e06 (diff)
downloadchromium_src-2ef6527547e597552e34159294574b74471fd636.zip
chromium_src-2ef6527547e597552e34159294574b74471fd636.tar.gz
chromium_src-2ef6527547e597552e34159294574b74471fd636.tar.bz2
Fake main window resizing in the test shell.
BUG=22707 TEST=window-resize layout tests Review URL: http://codereview.chromium.org/212053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index f63b9a8..ab3aa12f 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -899,6 +899,7 @@ TestWebViewDelegate::TestWebViewDelegate(TestShell* shell)
top_loading_frame_(NULL),
page_id_(-1),
last_page_id_updated_(-1),
+ using_fake_rect_(false),
#if defined(OS_LINUX)
cursor_type_(GDK_X_CURSOR),
#endif
@@ -1079,3 +1080,12 @@ std::wstring TestWebViewDelegate::GetFrameDescription(WebFrame* webframe) {
return L"frame (anonymous)";
}
}
+
+void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
+ fake_rect_ = rect;
+ using_fake_rect_ = true;
+}
+
+WebRect TestWebViewDelegate::fake_window_rect() {
+ return fake_rect_;
+}