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

Unified Diff: chrome/browser/ui/gtk/custom_button.h

Issue 8769017: GTK: Move CairoCachedSurface from being owned by GtkThemeService to gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase for commit Created 9 years 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 | « chrome/browser/ui/gtk/cairo_cached_surface.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/custom_button.h
diff --git a/chrome/browser/ui/gtk/custom_button.h b/chrome/browser/ui/gtk/custom_button.h
index 15d837e2c06d5d575962c4ed8b5cd26dde338864..6d3bff8af627c14dec1bbe52fb8f149449090f88 100644
--- a/chrome/browser/ui/gtk/custom_button.h
+++ b/chrome/browser/ui/gtk/custom_button.h
@@ -19,10 +19,13 @@
#include "ui/base/gtk/owned_widget_gtk.h"
#include "ui/gfx/rect.h"
-class CairoCachedSurface;
class GtkThemeService;
class SkBitmap;
+namespace gfx {
+class CairoCachedSurface;
+}
+
// These classes implement two kinds of custom-drawn buttons. They're
// used on the toolbar and the bookmarks bar.
@@ -64,14 +67,14 @@ class CustomDrawButtonBase : public content::NotificationObserver {
private:
// Get the CairoCachedSurface from |surfaces_| for |state|.
- CairoCachedSurface* PixbufForState(int state);
+ gfx::CairoCachedSurface* PixbufForState(int state);
// We store one surface for each possible state of the button;
// INSENSITIVE is the last available state;
- scoped_ptr<CairoCachedSurface> surfaces_[GTK_STATE_INSENSITIVE + 1];
+ scoped_ptr<gfx::CairoCachedSurface> surfaces_[GTK_STATE_INSENSITIVE + 1];
// The background image.
- scoped_ptr<CairoCachedSurface> background_image_;
+ scoped_ptr<gfx::CairoCachedSurface> background_image_;
// If non-negative, the state to paint the button.
int paint_override_;
« no previous file with comments | « chrome/browser/ui/gtk/cairo_cached_surface.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698