diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 00:06:51 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 00:06:51 +0000 |
commit | 636bffade735efe9ea47b32e766596672f780fc5 (patch) | |
tree | 5476f7a7cc230df41b32a2b5bd5a61324f6e0598 /ui/gfx/canvas_skia.h | |
parent | 7995319dd2575f5f8e9b63f1ad1e6b36480cef4d (diff) | |
download | chromium_src-636bffade735efe9ea47b32e766596672f780fc5.zip chromium_src-636bffade735efe9ea47b32e766596672f780fc5.tar.gz chromium_src-636bffade735efe9ea47b32e766596672f780fc5.tar.bz2 |
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
Diffstat (limited to 'ui/gfx/canvas_skia.h')
-rw-r--r-- | ui/gfx/canvas_skia.h | 19 |
1 files changed, 0 insertions, 19 deletions
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, |