diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 00:43:43 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 00:43:43 +0000 |
commit | 4118ab959e390b81735c81e84af7df2173826584 (patch) | |
tree | da502a0e8625401866d50f5eb7f8cce8ceeb0dc0 /chrome/browser/icon_manager.h | |
parent | 816cb613e0210984e25fc997803acc8876e5adbe (diff) | |
download | chromium_src-4118ab959e390b81735c81e84af7df2173826584.zip chromium_src-4118ab959e390b81735c81e84af7df2173826584.tar.gz chromium_src-4118ab959e390b81735c81e84af7df2173826584.tar.bz2 |
gtk: Make sure icon is right size in download item.
This results in kind of an ugly icon sometimes. When we get SVG support the number of ugly cases should go down.
http://crbug.com/13791
Review URL: http://codereview.chromium.org/126245
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/icon_manager.h')
-rw-r--r-- | chrome/browser/icon_manager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/icon_manager.h b/chrome/browser/icon_manager.h index 44d17da..1bb8fdf 100644 --- a/chrome/browser/icon_manager.h +++ b/chrome/browser/icon_manager.h @@ -70,15 +70,15 @@ class IconManager : public IconLoader::Delegate, SkBitmap* LookupIcon(const FilePath& file_name, IconLoader::IconSize size); + typedef CancelableRequestProvider::Handle Handle; + typedef Callback2<Handle, SkBitmap*>::Type IconRequestCallback; + // Asynchronous call to lookup and return the icon associated with file. The // work is done on the file thread, with the callbacks running on the UI // thread. The return value is the 'request_id' that will be passed to the - // client in the callback. + // client in the callback. Note: this does *not* check the cache. // // WATCH OUT: The returned bitmap pointer may be NULL if decoding failed. - typedef CancelableRequestProvider::Handle Handle; - typedef Callback2<Handle, SkBitmap*>::Type IconRequestCallback; - Handle LoadIcon(const FilePath& file_name, IconLoader::IconSize size, CancelableRequestConsumerBase* consumer, |