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/bookmark_bar_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/bookmark_bar_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_bar_view.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc index 1d552dd..d219f9e 100644 --- a/chrome/browser/views/bookmark_bar_view.cc +++ b/chrome/browser/views/bookmark_bar_view.cc @@ -6,7 +6,7 @@ #include <limits> -#include "app/gfx/chrome_canvas.h" +#include "app/gfx/canvas.h" #include "app/gfx/text_elider.h" #include "app/l10n_util.h" #include "app/os_exchange_data.h" @@ -256,7 +256,7 @@ class BookmarkFolderButton : public views::MenuButton { return e.IsMiddleMouseButton(); } - virtual void Paint(ChromeCanvas *canvas) { + virtual void Paint(gfx::Canvas *canvas) { views::MenuButton::Paint(canvas, false); } @@ -310,7 +310,7 @@ class ButtonSeparatorView : public views::View { ButtonSeparatorView() {} virtual ~ButtonSeparatorView() {} - virtual void Paint(ChromeCanvas* canvas) { + virtual void Paint(gfx::Canvas* canvas) { SkPaint paint; paint.setShader(skia::CreateGradientShader(0, height() / 2, @@ -554,7 +554,7 @@ void BookmarkBarView::ViewHierarchyChanged(bool is_add, } } -void BookmarkBarView::Paint(ChromeCanvas* canvas) { +void BookmarkBarView::Paint(gfx::Canvas* canvas) { if (IsDetachedStyle()) { // Draw the background to match the new tab page. canvas->FillRectInt(kNewtabBackgroundColor, 0, 0, width(), height()); @@ -616,7 +616,7 @@ void BookmarkBarView::Paint(ChromeCanvas* canvas) { } } -void BookmarkBarView::PaintChildren(ChromeCanvas* canvas) { +void BookmarkBarView::PaintChildren(gfx::Canvas* canvas) { View::PaintChildren(canvas); if (drop_info_.get() && drop_info_->valid && @@ -892,7 +892,7 @@ MenuButton* BookmarkBarView::CreateOverflowButton() { // right-to-left. // // By default, menu buttons are not flipped because they generally contain - // text and flipping the ChromeCanvas object will break text rendering. Since + // text and flipping the gfx::Canvas object will break text rendering. Since // the overflow button does not contain text, we can safely flip it. button->EnableCanvasFlippingForRTLUI(true); @@ -1053,7 +1053,7 @@ void BookmarkBarView::WriteDragData(View* sender, for (int i = 0; i < GetBookmarkButtonCount(); ++i) { if (sender == GetBookmarkButton(i)) { views::TextButton* button = GetBookmarkButton(i); - ChromeCanvas canvas(button->width(), button->height(), false); + gfx::Canvas canvas(button->width(), button->height(), false); button->Paint(&canvas, true); drag_utils::SetDragImageOnDataObject(canvas, button->width(), button->height(), press_x, |