From 636bffade735efe9ea47b32e766596672f780fc5 Mon Sep 17 00:00:00 2001 From: "sail@chromium.org" <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 8 Apr 2011 00:06:51 +0000 Subject: Revert 80870 - Fade tab titlesThis change fades tab titles instead of truncating them with a "...".I tried to copy the Mac implemenation from here:http://code.google.com/p/google-toolbox-for-mac/source/browse/trunk/AppKit/GTMFadeTruncatingTextFieldCell.mbut my version is not as good since I couldn't figure out how to draw text on a transparent background.BUG=69301TEST=Ran Chromium and verified that things looked ok.Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80416Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80748Review URL: http://codereview.chromium.org/6695043 TBR=sail@chromium.org Review URL: http://codereview.chromium.org/6815022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80871 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/canvas_skia.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'ui/gfx/canvas_skia.h') diff --git a/ui/gfx/canvas_skia.h b/ui/gfx/canvas_skia.h index 4811a81..9516e8a3 100644 --- a/ui/gfx/canvas_skia.h +++ b/ui/gfx/canvas_skia.h @@ -37,12 +37,6 @@ class Canvas; class CanvasSkia : public skia::PlatformCanvas, public Canvas { public: - enum TruncateFadeMode { - TruncateFadeTail, - TruncateFadeHead, - TruncateFadeHeadAndTail, - }; - // Creates an empty Canvas. Callers must use initialize before using the // canvas. CanvasSkia(); @@ -138,19 +132,6 @@ class CanvasSkia : public skia::PlatformCanvas, const SkColor& color, int x, int y, int w, int h, int flags); -#if defined(OS_WIN) - // Draws the given string with the beginning and/or the end using a fade - // gradient. When truncating the head - // |desired_characters_to_truncate_from_head| specifies the maximum number of - // characters that can be truncated. - virtual void DrawFadeTruncatingString( - const string16& text, - TruncateFadeMode truncate_mode, - size_t desired_characters_to_truncate_from_head, - const gfx::Font& font, - const SkColor& color, - const gfx::Rect& display_rect); -#endif virtual void DrawFocusRect(int x, int y, int width, int height); virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h); virtual void TileImageInt(const SkBitmap& bitmap, -- cgit v1.1