OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_X_X11_UTIL_H_ | 5 #ifndef UI_BASE_X_X11_UTIL_H_ |
6 #define UI_BASE_X_X11_UTIL_H_ | 6 #define UI_BASE_X_X11_UTIL_H_ |
7 | 7 |
8 // This file declares utility functions for X11 (Linux only). | 8 // This file declares utility functions for X11 (Linux only). |
9 // | 9 // |
10 // These functions do not require the Xlib headers to be included (which is why | 10 // These functions do not require the Xlib headers to be included (which is why |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/base/ui_export.h" | 21 #include "ui/base/ui_export.h" |
22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
23 | 23 |
24 typedef unsigned long Atom; | 24 typedef unsigned long Atom; |
25 typedef unsigned long XID; | 25 typedef unsigned long XID; |
26 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. | 26 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. |
27 typedef struct _XDisplay Display; | 27 typedef struct _XDisplay Display; |
28 typedef unsigned long Cursor; | 28 typedef unsigned long Cursor; |
29 typedef struct _XcursorImage XcursorImage; | 29 typedef struct _XcursorImage XcursorImage; |
30 typedef struct _XImage XImage; | 30 typedef struct _XImage XImage; |
| 31 typedef struct _XGC *GC; |
31 | 32 |
32 #if defined(TOOLKIT_GTK) | 33 #if defined(TOOLKIT_GTK) |
33 typedef struct _GdkDrawable GdkWindow; | 34 typedef struct _GdkDrawable GdkWindow; |
34 typedef struct _GtkWidget GtkWidget; | 35 typedef struct _GtkWidget GtkWidget; |
35 typedef struct _GtkWindow GtkWindow; | 36 typedef struct _GtkWindow GtkWindow; |
36 #endif | 37 #endif |
37 | 38 |
38 namespace gfx { | 39 namespace gfx { |
39 class Rect; | 40 class Rect; |
40 } | 41 } |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 private: | 401 private: |
401 ::Cursor cursor_; | 402 ::Cursor cursor_; |
402 Display* display_; | 403 Display* display_; |
403 | 404 |
404 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); | 405 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); |
405 }; | 406 }; |
406 | 407 |
407 } // namespace ui | 408 } // namespace ui |
408 | 409 |
409 #endif // UI_BASE_X_X11_UTIL_H_ | 410 #endif // UI_BASE_X_X11_UTIL_H_ |
OLD | NEW |