Index: chrome/browser/gtk/custom_button.h |
diff --git a/chrome/browser/gtk/custom_button.h b/chrome/browser/gtk/custom_button.h |
index 27dc275eea84e7c225d1498a27622d37ba2d8c01..768b4cabca22a78150fe761c1e669e6807264517 100644 |
--- a/chrome/browser/gtk/custom_button.h |
+++ b/chrome/browser/gtk/custom_button.h |
@@ -16,7 +16,6 @@ |
#include "chrome/common/owned_widget_gtk.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
-class CairoCachedSurface; |
class GtkThemeProvider; |
// These classes implement two kinds of custom-drawn buttons. They're |
@@ -37,9 +36,7 @@ class CustomDrawButtonBase : public NotificationObserver { |
~CustomDrawButtonBase(); |
- // Returns the dimensions of the first surface. |
- int Width() const; |
- int Height() const; |
+ GdkPixbuf* pixbufs(int i) const { return pixbufs_[i]; } |
gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e); |
@@ -55,12 +52,12 @@ class CustomDrawButtonBase : public NotificationObserver { |
const NotificationDetails& details); |
private: |
- // We store one surface for each possible state of the button; |
+ // We store one GdkPixbuf* for each possible state of the button; |
// INSENSITIVE is the last available state; |
- scoped_ptr<CairoCachedSurface> surfaces_[GTK_STATE_INSENSITIVE + 1]; |
+ GdkPixbuf* pixbufs_[GTK_STATE_INSENSITIVE + 1]; |
// The background image. |
- scoped_ptr<CairoCachedSurface> background_image_; |
+ GdkPixbuf* background_image_; |
// If non-negative, the state to paint the button. |
int paint_override_; |