Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ui/gfx/x/x11_types.h

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/x/x11_types.h
diff --git a/ui/gfx/x/x11_types.h b/ui/gfx/x/x11_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..eab42f2352b4fc37ec70b95f96f45178b5adcb5d
--- /dev/null
+++ b/ui/gfx/x/x11_types.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 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 UI_GFX_X_X11_UTIL_H_
+#define UI_GFX_X_X11_UTIL_H_
+
+#include "ui/gfx/gfx_export.h"
+
+typedef unsigned long XID;
+typedef struct _XImage XImage;
+typedef struct _XGC *GC;
+typedef struct _XDisplay XDisplay;
+
+namespace gfx {
+
+// TODO(oshima|evan): This assume there is one display and doesn't work
+// undef multiple displays/monitor environment. Remove this and change the
+// chrome codebase to get the display from window.
+GFX_EXPORT XDisplay* GetXDisplay();
+
+} // namespace gfx
+
+#endif // UI_GFX_X_X11_UTIL_H_
+
« ui/base/x/x11_util.h ('K') | « ui/base/x/x11_util.cc ('k') | ui/gfx/x/x11_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698