Index: webkit/tools/test_shell/test_shell_x11.h |
diff --git a/webkit/tools/test_shell/test_shell_x11.h b/webkit/tools/test_shell/test_shell_x11.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a17356dd4b7828a4e2c6b28d0bd9c918049d654b |
--- /dev/null |
+++ b/webkit/tools/test_shell/test_shell_x11.h |
@@ -0,0 +1,18 @@ |
+#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |
+#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |
+ |
+// This header is required because one cannot include both Xlib headers and |
+// WebKit headers in the same source file. |
+ |
+typedef struct _XDisplay Display; |
+ |
+namespace test_shell_x11 { |
+ |
+// Return an Xlib Display pointer for the given widget |
+Display* GtkWidgetGetDisplay(GtkWidget* widget); |
+// Return the screen number for the given widget |
+int GtkWidgetGetScreenNum(GtkWidget* widget); |
+ |
+} // namespace test_shell_x11 |
+ |
+#endif // !WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |