OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
1 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |
2 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |
3 | 7 |
4 // This header is required because one cannot include both Xlib headers and | 8 // This header is required because one cannot include both Xlib headers and |
5 // WebKit headers in the same source file. | 9 // WebKit headers in the same source file. |
6 | 10 |
7 typedef struct _XDisplay Display; | 11 typedef struct _XDisplay Display; |
8 | 12 |
9 namespace test_shell_x11 { | 13 namespace test_shell_x11 { |
10 | 14 |
11 // Return an Xlib Display pointer for the given widget | 15 // Return an Xlib Display pointer for the given widget |
12 Display* GtkWidgetGetDisplay(GtkWidget* widget); | 16 Display* GtkWidgetGetDisplay(GtkWidget* widget); |
13 // Return the screen number for the given widget | 17 // Return the screen number for the given widget |
14 int GtkWidgetGetScreenNum(GtkWidget* widget); | 18 int GtkWidgetGetScreenNum(GtkWidget* widget); |
15 | 19 |
16 } // namespace test_shell_x11 | 20 } // namespace test_shell_x11 |
17 | 21 |
18 #endif // !WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H | 22 #endif // !WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_X11_H |
OLD | NEW |