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

Unified Diff: webkit/tools/test_shell/test_shell_x11.h

Issue 67145: Linux: move X operations from the IO to UI2 thread. (Closed)
Patch Set: ... Created 11 years, 8 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
« no previous file with comments | « webkit/tools/test_shell/test_shell.gyp ('k') | webkit/tools/test_shell/test_shell_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/tools/test_shell/test_shell.gyp ('k') | webkit/tools/test_shell/test_shell_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698