| 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 |
| 11 // we use a void* for Visual*). The Xlib headers are highly polluting so we try | 11 // we use a void* for Visual*). The Xlib headers are highly polluting so we try |
| 12 // hard to limit their spread into the rest of the code. | 12 // hard to limit their spread into the rest of the code. |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "ui/base/events.h" | 18 #include "ui/base/events/event_constants.h" |
| 19 #include "ui/base/ui_export.h" | 19 #include "ui/base/ui_export.h" |
| 20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/point.h" |
| 21 | 21 |
| 22 typedef unsigned long Atom; | 22 typedef unsigned long Atom; |
| 23 typedef unsigned long XID; | 23 typedef unsigned long XID; |
| 24 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. | 24 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. |
| 25 typedef struct _XDisplay Display; | 25 typedef struct _XDisplay Display; |
| 26 typedef unsigned long Cursor; | 26 typedef unsigned long Cursor; |
| 27 typedef struct _XcursorImage XcursorImage; | 27 typedef struct _XcursorImage XcursorImage; |
| 28 | 28 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 private: | 313 private: |
| 314 char* string_; | 314 char* string_; |
| 315 | 315 |
| 316 DISALLOW_COPY_AND_ASSIGN(XScopedString); | 316 DISALLOW_COPY_AND_ASSIGN(XScopedString); |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 } // namespace ui | 319 } // namespace ui |
| 320 | 320 |
| 321 #endif // UI_BASE_X_X11_UTIL_H_ | 321 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |