blob: d3e41dd3f6d0312a187928292ce46864fb27f797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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
|