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

Unified Diff: views/border.cc

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/border.h ('k') | views/controls/button/checkbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/border.cc
===================================================================
--- views/border.cc (revision 16147)
+++ views/border.cc (working copy)
@@ -4,7 +4,7 @@
#include "views/border.h"
-#include "app/gfx/chrome_canvas.h"
+#include "app/gfx/canvas.h"
#include "base/logging.h"
namespace views {
@@ -16,7 +16,7 @@
public:
SolidBorder(int thickness, SkColor color);
- virtual void Paint(const View& view, ChromeCanvas* canvas) const;
+ virtual void Paint(const View& view, gfx::Canvas* canvas) const;
virtual void GetInsets(gfx::Insets* insets) const;
private:
@@ -33,7 +33,7 @@
insets_(thickness, thickness, thickness, thickness) {
}
-void SolidBorder::Paint(const View& view, ChromeCanvas* canvas) const {
+void SolidBorder::Paint(const View& view, gfx::Canvas* canvas) const {
gfx::Rect clip_rect;
if (!canvas->GetClipRect(&clip_rect))
return; // Empty clip rectangle, nothing to paint.
@@ -70,7 +70,7 @@
EmptyBorder(int top, int left, int bottom, int right)
: top_(top), left_(left), bottom_(bottom), right_(right) {}
- virtual void Paint(const View& view, ChromeCanvas* canvas) const {}
+ virtual void Paint(const View& view, gfx::Canvas* canvas) const {}
virtual void GetInsets(gfx::Insets* insets) const {
DCHECK(insets);
« no previous file with comments | « views/border.h ('k') | views/controls/button/checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698