summaryrefslogtreecommitdiffstats
path: root/app/gfx/canvas.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 22:00:17 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 22:00:17 +0000
commit2597381b07036e7d6e0773c8195a3dab7ef1240c (patch)
tree87c274ba5b6cd8d5b229d40f15140ad05b167be0 /app/gfx/canvas.h
parent56f959eee5652b24c3ea5efcb243fc999cd4a6a8 (diff)
downloadchromium_src-2597381b07036e7d6e0773c8195a3dab7ef1240c.zip
chromium_src-2597381b07036e7d6e0773c8195a3dab7ef1240c.tar.gz
chromium_src-2597381b07036e7d6e0773c8195a3dab7ef1240c.tar.bz2
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@38828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/canvas.h')
-rw-r--r--app/gfx/canvas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/gfx/canvas.h b/app/gfx/canvas.h
index e59db16..79eed9c 100644
--- a/app/gfx/canvas.h
+++ b/app/gfx/canvas.h
@@ -163,6 +163,8 @@ class Canvas : public skia::PlatformCanvas {
// text is too big, it is truncated and '...' is added to the end.
void DrawStringInt(const std::wstring& text, const gfx::Font& font,
const SkColor& color, int x, int y, int w, int h);
+ void DrawStringInt(const std::wstring& text, const gfx::Font& font,
+ const SkColor& color, const gfx::Rect& display_rect);
// Draws text with the specified color, font and location. The last argument
// specifies flags for how the text should be rendered. It can be one of