summaryrefslogtreecommitdiffstats
path: root/app/gtk_integers.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 21:28:04 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 21:28:04 +0000
commit284f766950396abce8f0672c2ccde6b45de25578 (patch)
treea711fe12c1c3ac2aa83e1392f667cdff8b07221f /app/gtk_integers.h
parentb3f2f32e4cdf73df0073930cef7b4d3531df8e5d (diff)
downloadchromium_src-284f766950396abce8f0672c2ccde6b45de25578.zip
chromium_src-284f766950396abce8f0672c2ccde6b45de25578.tar.gz
chromium_src-284f766950396abce8f0672c2ccde6b45de25578.tar.bz2
GTK: Minimize usage of gtk headers.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2891006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gtk_integers.h')
-rw-r--r--app/gtk_integers.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/gtk_integers.h b/app/gtk_integers.h
new file mode 100644
index 0000000..7a95847
--- /dev/null
+++ b/app/gtk_integers.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2010 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 APP_GTK_INTEGERS_H_
+#define APP_GTK_INTEGERS_H_
+
+// GLib/Gobject/Gtk all use their own integer typedefs. They are copied here
+// for forward declaration reasons so we don't pull in all of gtk.h when we
+// just need a gpointer.
+typedef char gchar;
+typedef short gshort;
+typedef long glong;
+typedef int gint;
+typedef gint gboolean;
+typedef unsigned char guchar;
+typedef unsigned short gushort;
+typedef unsigned long gulong;
+typedef unsigned int guint;
+
+typedef unsigned short guint16;
+typedef unsigned int guint32;
+
+typedef void* gpointer;
+typedef const void *gconstpointer;
+
+#endif // APP_GTK_INTEGERS_H_