From 5a9bb950970d732b3d9f0ed4ecc052c6d213bde4 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 11 Feb 2010 23:46:04 +0000 Subject: Make clicking on side tabs to select them work. Use a simple round rect for the visual treatment. Add some rect conversion utils. http://crbug.com/34509 TEST=none Review URL: http://codereview.chromium.org/597012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38856 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/sad_tab_view.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/views/sad_tab_view.cc') diff --git a/chrome/browser/views/sad_tab_view.cc b/chrome/browser/views/sad_tab_view.cc index 9b9f839..8b6ebaa 100644 --- a/chrome/browser/views/sad_tab_view.cc +++ b/chrome/browser/views/sad_tab_view.cc @@ -5,6 +5,7 @@ #include "chrome/browser/views/sad_tab_view.h" #include "app/gfx/canvas.h" +#include "app/gfx/skia_util.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/gfx/size.h" @@ -12,7 +13,6 @@ #include "grit/generated_resources.h" #include "grit/locale_settings.h" #include "grit/theme_resources.h" -#include "skia/ext/skia_utils.h" #include "third_party/skia/include/effects/SkGradientShader.h" static const int kSadTabOffset = -64; @@ -52,9 +52,9 @@ SadTabView::SadTabView(TabContents* tab_contents) void SadTabView::Paint(gfx::Canvas* canvas) { SkPaint paint; - paint.setShader(skia::CreateGradientShader(0, height(), - kBackgroundColor, - kBackgroundEndColor))->safeUnref(); + paint.setShader(gfx::CreateGradientShader(0, height(), + kBackgroundColor, + kBackgroundEndColor))->safeUnref(); paint.setStyle(SkPaint::kFill_Style); canvas->drawRectCoords(0, 0, SkIntToScalar(width()), SkIntToScalar(height()), -- cgit v1.1