diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 21:28:04 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 21:28:04 +0000 |
commit | 284f766950396abce8f0672c2ccde6b45de25578 (patch) | |
tree | a711fe12c1c3ac2aa83e1392f667cdff8b07221f /chrome/browser/gtk/gtk_theme_provider.h | |
parent | b3f2f32e4cdf73df0073930cef7b4d3531df8e5d (diff) | |
download | chromium_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 'chrome/browser/gtk/gtk_theme_provider.h')
-rw-r--r-- | chrome/browser/gtk/gtk_theme_provider.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h index edc5ce7..031c5c0 100644 --- a/chrome/browser/gtk/gtk_theme_provider.h +++ b/chrome/browser/gtk/gtk_theme_provider.h @@ -5,20 +5,29 @@ #ifndef CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ #define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ -#include <gtk/gtk.h> #include <map> #include <string> #include <vector> +#include "app/gtk_integers.h" #include "app/gtk_signal.h" +#include "base/scoped_ptr.h" #include "chrome/browser/browser_theme_provider.h" #include "chrome/common/notification_observer.h" #include "chrome/common/owned_widget_gtk.h" #include "gfx/color_utils.h" class CairoCachedSurface; +class GtkSignalRegistrar; class Profile; +typedef struct _GdkDisplay GdkDisplay; +typedef struct _GdkEventExpose GdkEventExpose; +typedef struct _GdkPixbuf GdkPixbuf; +typedef struct _GtkIconSet GtkIconSet; +typedef struct _GtkStyle GtkStyle; +typedef struct _GtkWidget GtkWidget; + // Specialization of BrowserThemeProvider which supplies system colors. class GtkThemeProvider : public BrowserThemeProvider, public NotificationObserver { @@ -153,13 +162,6 @@ class GtkThemeProvider : public BrowserThemeProvider, // the menus are always rendered with gtk colors. void RebuildMenuIconSets(); - // Builds and tints the image with |id| to the GtkStateType |state| and - // places the result in |icon_set|. - void BuildIconFromIDRWithColor(int id, - GtkStyle* style, - GtkStateType state, - GtkIconSet* icon_set); - // Sets the underlying theme colors/tints from a GTK color. void SetThemeColorFromGtk(int id, const GdkColor* color); void SetThemeTintFromGtk(int id, const GdkColor* color); @@ -225,7 +227,7 @@ class GtkThemeProvider : public BrowserThemeProvider, std::vector<GtkWidget*> chrome_buttons_; // Tracks all the signals we have connected to on various widgets. - GtkSignalRegistrar signals_; + scoped_ptr<GtkSignalRegistrar> signals_; // Tints and colors calculated by LoadGtkValues() that are given to the // caller while |use_gtk_| is true. |