Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 58008: Replace webkit/glue/screen_info.h with WebKit/chromium/public/WebScreenInfo.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698