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

Side by Side Diff: webkit/tools/test_shell/test_shell_x11.cc

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 unified diff | Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell_x11.h ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <gtk/gtk.h>
2 #include <gdk/gdkx.h>
3
4 #include "webkit/tools/test_shell/test_shell_x11.h"
5
6 namespace test_shell_x11 {
7
8 Display* GtkWidgetGetDisplay(GtkWidget* widget) {
9 GdkDisplay* gdk_display = gtk_widget_get_display(widget);
10 return gdk_x11_display_get_xdisplay(gdk_display);
11 }
12
13 int GtkWidgetGetScreenNum(GtkWidget* widget) {
14 GdkDisplay* gdk_display = gtk_widget_get_display(widget);
15 GdkScreen* gdk_screen = gdk_display_get_default_screen(gdk_display);
16 return gdk_x11_screen_get_screen_number(gdk_screen);
17 }
18
19 } // namespace test_shell_x11
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_x11.h ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698