diff options
Diffstat (limited to 'chromium/ui/gfx/x/x11.h')
-rw-r--r-- | chromium/ui/gfx/x/x11.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/chromium/ui/gfx/x/x11.h b/chromium/ui/gfx/x/x11.h deleted file mode 100644 index a19c26e01bb..00000000000 --- a/chromium/ui/gfx/x/x11.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2017 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. - -// This header file replaces <X11/Xlib.h>. https://crbug.com/1066670 is -// tracking removing usage of Xlib altogether. Do not add more Xlib -// declarations here. The intention is to incrementally remove declarations -// until there is nothing left, at which point this file will be removed. - -#ifndef UI_GFX_X_X11_H_ -#define UI_GFX_X_X11_H_ - -#include "ui/gfx/x/connection.h" - -// Temporarily declare Xlib symbols we require. Do not add more Xlib -// declarations here and do not include anything from <X11/*>. - -extern "C" { - -using Status = int; -using Bool = int; -using XID = unsigned long; -using KeySym = XID; -using KeyCode = unsigned char; -using Window = XID; -using Pixmap = XID; -using Font = XID; -using VisualID = unsigned long; -using XPointer = char*; -using Colormap = XID; -using Cursor = XID; -using Atom = unsigned long; -using Time = unsigned long; -using GC = struct _XGC*; -using Display = struct _XDisplay; -using xcb_connection_t = struct xcb_connection_t; - -enum XEventQueueOwner { XlibOwnsEventQueue = 0, XCBOwnsEventQueue }; - -using XErrorEvent = struct _XErrorEvent { - int type; - Display* display; - XID resourceid; - unsigned long serial; - unsigned char error_code; - unsigned char request_code; - unsigned char minor_code; -}; - -using XErrorHandler = int (*)(Display*, XErrorEvent*); -using XIOErrorHandler = int (*)(Display*); - -Status XInitThreads(void); -Display* XOpenDisplay(const char*); -int XCloseDisplay(Display*); -int XFlush(Display*); -xcb_connection_t* XGetXCBConnection(Display* dpy); -void XSetEventQueueOwner(Display* dpy, enum XEventQueueOwner owner); -unsigned long XLastKnownRequestProcessed(Display*); -int (*XSynchronize(Display*, Bool))(Display*); -int XGetErrorDatabaseText(Display*, - const char*, - const char*, - const char*, - char*, - int); -int XGetErrorText(Display*, int, char*, int); -XErrorHandler XSetErrorHandler(XErrorHandler); -XIOErrorHandler XSetIOErrorHandler(XIOErrorHandler); -int XStoreName(Display*, Window, const char*); -} - -#endif // UI_GFX_X_X11_H_ |