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 /chrome/browser/views/sad_tab_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 'chrome/browser/views/sad_tab_view.cc')
-rw-r--r-- | chrome/browser/views/sad_tab_view.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/views/sad_tab_view.cc b/chrome/browser/views/sad_tab_view.cc index 61a9e57..2c5ee30 100644 --- a/chrome/browser/views/sad_tab_view.cc +++ b/chrome/browser/views/sad_tab_view.cc @@ -4,7 +4,7 @@ #include "chrome/browser/views/sad_tab_view.h" -#include "app/gfx/chrome_canvas.h" +#include "app/gfx/canvas.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/gfx/size.h" @@ -35,7 +35,7 @@ SadTabView::SadTabView() { InitClass(); } -void SadTabView::Paint(ChromeCanvas* canvas) { +void SadTabView::Paint(gfx::Canvas* canvas) { SkPaint paint; paint.setShader(skia::CreateGradientShader(0, height(), kBackgroundColor, @@ -50,12 +50,12 @@ void SadTabView::Paint(ChromeCanvas* canvas) { canvas->DrawStringInt(title_, *title_font_, kTitleColor, title_bounds_.x(), title_bounds_.y(), title_bounds_.width(), title_bounds_.height(), - ChromeCanvas::TEXT_ALIGN_CENTER); + gfx::Canvas::TEXT_ALIGN_CENTER); canvas->DrawStringInt(message_, *message_font_, kMessageColor, message_bounds_.x(), message_bounds_.y(), message_bounds_.width(), message_bounds_.height(), - ChromeCanvas::MULTI_LINE); + gfx::Canvas::MULTI_LINE); } void SadTabView::Layout() { @@ -70,11 +70,11 @@ void SadTabView::Layout() { int title_height = title_font_->height(); title_bounds_.SetRect(title_x, title_y, title_width_, title_height); - ChromeCanvas cc(0, 0, true); + gfx::Canvas cc(0, 0, true); int message_width = static_cast<int>(width() * kMessageSize); int message_height = 0; cc.SizeStringInt(message_, *message_font_, &message_width, &message_height, - ChromeCanvas::MULTI_LINE); + gfx::Canvas::MULTI_LINE); int message_x = (width() - message_width) / 2; int message_y = title_bounds_.bottom() + kTitleMessageSpacing; message_bounds_.SetRect(message_x, message_y, message_width, message_height); |