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/window/dialog_client_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/window/dialog_client_view.cc')
-rw-r--r-- | views/window/dialog_client_view.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/views/window/dialog_client_view.cc b/views/window/dialog_client_view.cc index 9e25462..978d45a 100644 --- a/views/window/dialog_client_view.cc +++ b/views/window/dialog_client_view.cc @@ -8,8 +8,8 @@ #include <uxtheme.h> #include <vsstyle.h> -#include "app/gfx/chrome_canvas.h" -#include "app/gfx/chrome_font.h" +#include "app/gfx/canvas.h" +#include "app/gfx/font.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/gfx/native_theme.h" @@ -34,7 +34,7 @@ void UpdateButtonHelper(NativeButton* button_view, button_view->SetVisible(delegate->IsDialogButtonVisible(button)); } -void FillViewWithSysColor(ChromeCanvas* canvas, View* view, COLORREF color) { +void FillViewWithSysColor(gfx::Canvas* canvas, View* view, COLORREF color) { SkColor sk_color = SkColorSetRGB(GetRValue(color), GetGValue(color), GetBValue(color)); canvas->FillRectInt(sk_color, 0, 0, view->width(), view->height()); @@ -250,11 +250,11 @@ int DialogClientView::NonClientHitTest(const gfx::Point& point) { //////////////////////////////////////////////////////////////////////////////// // DialogClientView, View overrides: -void DialogClientView::Paint(ChromeCanvas* canvas) { +void DialogClientView::Paint(gfx::Canvas* canvas) { FillViewWithSysColor(canvas, this, GetSysColor(COLOR_3DFACE)); } -void DialogClientView::PaintChildren(ChromeCanvas* canvas) { +void DialogClientView::PaintChildren(gfx::Canvas* canvas) { View::PaintChildren(canvas); if (!window()->IsMaximized() && !window()->IsMinimized()) PaintSizeBox(canvas); @@ -347,7 +347,7 @@ void DialogClientView::ButtonPressed(Button* sender) { //////////////////////////////////////////////////////////////////////////////// // DialogClientView, private: -void DialogClientView::PaintSizeBox(ChromeCanvas* canvas) { +void DialogClientView::PaintSizeBox(gfx::Canvas* canvas) { if (window()->GetDelegate()->CanResize() || window()->GetDelegate()->CanMaximize()) { HDC dc = canvas->beginPlatformPaint(); |