summaryrefslogtreecommitdiffstats
path: root/views/painter.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 07:37:29 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 07:37:29 +0000
commit82522511b7921e8c61742ebd80a4c674c56e7e48 (patch)
tree381d71de2b9c7b99675e6f2b4523ae0876c72ce8 /views/painter.h
parent631cf822bd6e64cf469544b42c9975f5602c29a6 (diff)
downloadchromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.zip
chromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.tar.gz
chromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.tar.bz2
ChromeCanvas->gfx::Canvas
Rename files too. TBR=brettw http://crbug.com/11387 Review URL: http://codereview.chromium.org/113443 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/painter.h')
-rw-r--r--views/painter.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/views/painter.h b/views/painter.h
index 71d5565..9cef45f 100644
--- a/views/painter.h
+++ b/views/painter.h
@@ -10,7 +10,9 @@
#include "base/basictypes.h"
#include "third_party/skia/include/core/SkColor.h"
-class ChromeCanvas;
+namespace gfx {
+class Canvas;
+}
class SkBitmap;
namespace views {
@@ -23,7 +25,7 @@ class Painter {
// A convenience method for painting a Painter in a particular region.
// This translates the canvas to x/y and paints the painter.
static void PaintPainterAt(int x, int y, int w, int h,
- ChromeCanvas* canvas, Painter* painter);
+ gfx::Canvas* canvas, Painter* painter);
// Creates a painter that draws a gradient between the two colors.
static Painter* CreateHorizontalGradient(SkColor c1, SkColor c2);
@@ -32,7 +34,7 @@ class Painter {
virtual ~Painter() {}
// Paints the painter in the specified region.
- virtual void Paint(int w, int h, ChromeCanvas* canvas) = 0;
+ virtual void Paint(int w, int h, gfx::Canvas* canvas) = 0;
};
// ImagePainter paints 8 (or 9) images into a box. The four corner
@@ -64,7 +66,7 @@ class ImagePainter : public Painter {
virtual ~ImagePainter() {}
// Paints the images.
- virtual void Paint(int w, int h, ChromeCanvas* canvas);
+ virtual void Paint(int w, int h, gfx::Canvas* canvas);
// Returns the specified image. The returned image should NOT be deleted.
SkBitmap* GetImage(BorderElements element) {
@@ -94,7 +96,7 @@ class HorizontalPainter : public Painter {
virtual ~HorizontalPainter() {}
// Paints the images.
- virtual void Paint(int w, int h, ChromeCanvas* canvas);
+ virtual void Paint(int w, int h, gfx::Canvas* canvas);
// Height of the images.
int height() const { return height_; }