Index: webkit/tools/test_shell/webwidget_host_gtk.cc |
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc |
index 5645da7c22eaf764181a55dfc0934a922dabcac6..3bba172c58df5947c37cfb74fee2e8c07b5a988d 100644 |
--- a/webkit/tools/test_shell/webwidget_host_gtk.cc |
+++ b/webkit/tools/test_shell/webwidget_host_gtk.cc |
@@ -13,12 +13,13 @@ |
#include "skia/ext/platform_canvas_linux.h" |
#include "skia/ext/platform_device_linux.h" |
#include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" |
-#include "third_party/WebKit/WebKit/chromium/public/gtk/WebScreenInfoFactory.h" |
+#include "third_party/WebKit/WebKit/chromium/public/x11/WebScreenInfoFactory.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
#include "webkit/glue/webwidget.h" |
#include "webkit/tools/test_shell/test_shell.h" |
+#include "webkit/tools/test_shell/test_shell_x11.h" |
using WebKit::WebInputEventFactory; |
using WebKit::WebKeyboardEvent; |
@@ -368,7 +369,9 @@ void WebWidgetHost::Paint() { |
} |
WebScreenInfo WebWidgetHost::GetScreenInfo() { |
- return WebScreenInfoFactory::screenInfo(view_); |
+ Display* display = test_shell_x11::GtkWidgetGetDisplay(view_); |
+ int screen_num = test_shell_x11::GtkWidgetGetScreenNum(view_); |
+ return WebScreenInfoFactory::screenInfo(display, screen_num); |
} |
void WebWidgetHost::ResetScrollRect() { |