summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tab_icon_view.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 01:05:25 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 01:05:25 +0000
commitae760dca3c69caf48418c00d042df9969db3581c (patch)
tree3b573039efa9e841df1f68eecf9c22b4f9936549 /chrome/browser/views/tab_icon_view.h
parentbb97536b768ac68fcbc4605c35461a798ef6e5ff (diff)
downloadchromium_src-ae760dca3c69caf48418c00d042df9969db3581c.zip
chromium_src-ae760dca3c69caf48418c00d042df9969db3581c.tar.gz
chromium_src-ae760dca3c69caf48418c00d042df9969db3581c.tar.bz2
Fix some problems with scaled icons. This allows the TabIconView to automatically scale the throbber and favicon to whatever size the View itself is. Notably, this does NOT change tab_renderer.cc, which _also_ draws favicons -- the former is used by app windows and the latter by standard tabs. Argh! I'm not going to bother unifying these for now even though it'd be nice, since we never scale up our tabs, just our app titlebars.
BUG=5054 Review URL: http://codereview.chromium.org/18392 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_icon_view.h')
-rw-r--r--chrome/browser/views/tab_icon_view.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/views/tab_icon_view.h b/chrome/browser/views/tab_icon_view.h
index 43302228..a644163 100644
--- a/chrome/browser/views/tab_icon_view.h
+++ b/chrome/browser/views/tab_icon_view.h
@@ -44,6 +44,13 @@ class TabIconView : public views::View {
private:
void PaintThrobber(ChromeCanvas* canvas);
void PaintFavIcon(ChromeCanvas* canvas, const SkBitmap& bitmap);
+ void PaintIcon(ChromeCanvas* canvas,
+ const SkBitmap& bitmap,
+ int src_x,
+ int src_y,
+ int src_w,
+ int src_h,
+ bool filter);
// Our model.
TabIconViewModel* model_;