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

Unified Diff: views/painter.h

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months 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 | « views/drag_utils.cc ('k') | views/painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/painter.h
===================================================================
--- views/painter.h (revision 16147)
+++ views/painter.h (working copy)
@@ -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 @@
// 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 @@
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 @@
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 @@
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_; }
« no previous file with comments | « views/drag_utils.cc ('k') | views/painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698