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

Unified Diff: ui/base/x/x11_util_internal.h

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 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
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util_internal.h
diff --git a/ui/base/x/x11_util_internal.h b/ui/base/x/x11_util_internal.h
index 100d215f6a0d1f7d7d0e1884851f78c88ab026d1..ffd57062290938a6fdde36e60e80b1e2a930b087 100644
--- a/ui/base/x/x11_util_internal.h
+++ b/ui/base/x/x11_util_internal.h
@@ -12,12 +12,33 @@
// when needed.
extern "C" {
-#include <X11/extensions/Xrender.h>
-#include <X11/extensions/XShm.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
+#define Bool int // Ironic, but other headers undef Bool
+#include <X11/extensions/XInput.h>
+#include <X11/extensions/XShm.h>
+#include <X11/extensions/Xrender.h>
+#undef None // Defined by X11/X.h to 0L which collides with other headers
+#undef Status // Defined by X11/Xlib.h to int which collides with other headers
+#undef True // Defined by X11/Xlib.h to 1 which collides with other headers
+#undef False // Defined by X11/Xlib.h to 0 which collides with other headers
+#undef CurrentTime // Defined by X11/X.h to 0L which collides with other
+ // headers
+#undef Success // Defined by X11/X.h to 0 which collides with other headers
+#undef CREATE // Defined by XInput.h to 1 which collides with other headers
+#undef DestroyAll // Defined by X11/X.h to 0 which collides with other headers
+#undef COUNT // Defined by X11/extensions/XI.h to 0 which collides
}
+struct X11Constants {
+ static const long None = 0L;
+ static const long CurrentTime = 0L;
+ static const int False = 0;
+ static const int True = 1;
+ static const int Success = 0;
+ typedef int Status;
+};
+
#include <memory>
#include <unordered_map>
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698