Index: webkit/tools/test_shell/test_webview_delegate.cc |
=================================================================== |
--- webkit/tools/test_shell/test_webview_delegate.cc (revision 26736) |
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy) |
@@ -894,6 +894,7 @@ |
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 |
@@ -1074,3 +1075,12 @@ |
return L"frame (anonymous)"; |
} |
} |
+ |
+void TestWebViewDelegate::setFakeWindowRect(const WebRect& rect) { |
+ fake_rect_ = rect; |
+ using_fake_rect_ = true; |
+} |
+ |
+WebRect TestWebViewDelegate::getFakeWindowRect() { |
+ return fake_rect_; |
+} |