diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 07:37:29 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 07:37:29 +0000 |
commit | 82522511b7921e8c61742ebd80a4c674c56e7e48 (patch) | |
tree | 381d71de2b9c7b99675e6f2b4523ae0876c72ce8 /views/view.cc | |
parent | 631cf822bd6e64cf469544b42c9975f5602c29a6 (diff) | |
download | chromium_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/view.cc')
-rw-r--r-- | views/view.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/views/view.cc b/views/view.cc index 5430a8f..e085f15 100644 --- a/views/view.cc +++ b/views/view.cc @@ -10,7 +10,7 @@ #endif #include "app/drag_drop_types.h" -#include "app/gfx/chrome_canvas.h" +#include "app/gfx/canvas.h" #include "app/l10n_util.h" #include "base/logging.h" #include "base/message_loop.h" @@ -299,28 +299,28 @@ void View::SchedulePaint(int x, int y, int w, int h) { SchedulePaint(gfx::Rect(x, y, w, h), false); } -void View::Paint(ChromeCanvas* canvas) { +void View::Paint(gfx::Canvas* canvas) { PaintBackground(canvas); PaintFocusBorder(canvas); PaintBorder(canvas); } -void View::PaintBackground(ChromeCanvas* canvas) { +void View::PaintBackground(gfx::Canvas* canvas) { if (background_.get()) background_->Paint(canvas, this); } -void View::PaintBorder(ChromeCanvas* canvas) { +void View::PaintBorder(gfx::Canvas* canvas) { if (border_.get()) border_->Paint(*this, canvas); } -void View::PaintFocusBorder(ChromeCanvas* canvas) { +void View::PaintFocusBorder(gfx::Canvas* canvas) { if (HasFocus() && IsFocusable()) canvas->DrawFocusRect(0, 0, width(), height()); } -void View::PaintChildren(ChromeCanvas* canvas) { +void View::PaintChildren(gfx::Canvas* canvas) { int i, c; for (i = 0, c = GetChildViewCount(); i < c; ++i) { View* child = GetChildViewAt(i); @@ -332,7 +332,7 @@ void View::PaintChildren(ChromeCanvas* canvas) { } } -void View::ProcessPaint(ChromeCanvas* canvas) { +void View::ProcessPaint(gfx::Canvas* canvas) { if (!IsVisible()) { return; } |