Index: webkit/tools/test_shell/test_webview_delegate.cc |
=================================================================== |
--- webkit/tools/test_shell/test_webview_delegate.cc (revision 12916) |
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy) |
@@ -18,6 +18,7 @@ |
#include "base/trace_event.h" |
#include "net/base/net_errors.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
+#include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
#include "webkit/glue/webdatasource.h" |
#include "webkit/glue/webdropdata.h" |
#include "webkit/glue/weberror.h" |
@@ -39,6 +40,8 @@ |
#include "webkit/tools/test_shell/drop_delegate.h" |
#endif |
+using WebKit::WebScreenInfo; |
+ |
namespace { |
// WebNavigationType debugging strings taken from PolicyDelegate.mm. |
@@ -724,10 +727,17 @@ |
shell_->SetFocus(host, false); |
} |
-bool TestWebViewDelegate::IsHidden() { |
+bool TestWebViewDelegate::IsHidden(WebWidget* webwidget) { |
return false; |
} |
+WebScreenInfo TestWebViewDelegate::GetScreenInfo(WebWidget* webwidget) { |
+ if (WebWidgetHost* host = GetHostForWidget(webwidget)) |
+ return host->GetScreenInfo(); |
+ |
+ return WebScreenInfo(); |
+} |
+ |
void TestWebViewDelegate::RegisterDragDrop() { |
#if defined(OS_WIN) |
// TODO(port): add me once drag and drop works. |