Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: extensions/browser/image_loader.h

Issue 2576833002: Make some updates to extension iconography. (Closed)
Patch Set: devlin review Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/management/management_api_delegate.h ('k') | extensions/browser/image_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/image_loader.h
diff --git a/extensions/browser/image_loader.h b/extensions/browser/image_loader.h
index 3a7c1b4c607024d1b5ece976d77522758fc49538..8c1f446f3c2270a24a7594f3aec75c3bec95495b 100644
--- a/extensions/browser/image_loader.h
+++ b/extensions/browser/image_loader.h
@@ -80,15 +80,24 @@ class ImageLoader : public KeyedService {
// if the image was found in the cache.
// Note this method loads a raw bitmap from the resource. All sizes given are
// assumed to be in pixels.
- void LoadImageAsync(const extensions::Extension* extension,
+ // TODO(estade): remove this in favor of LoadImageAtEveryScaleFactorAsync,
+ // and rename the latter to LoadImageAsync.
+ void LoadImageAsync(const Extension* extension,
const ExtensionResource& resource,
const gfx::Size& max_size,
const ImageLoaderImageCallback& callback);
+ // Loads and returns a gfx::Image that has representations at all supported
+ // scale factors.
+ void LoadImageAtEveryScaleFactorAsync(
+ const Extension* extension,
+ const gfx::Size& dip_size,
+ const ImageLoaderImageCallback& callback);
+
// Same as LoadImageAsync() above except it loads multiple images from the
// same extension. This is used to load multiple resolutions of the same image
// type.
- void LoadImagesAsync(const extensions::Extension* extension,
+ void LoadImagesAsync(const Extension* extension,
const std::vector<ImageRepresentation>& info_list,
const ImageLoaderImageCallback& callback);
@@ -99,7 +108,7 @@ class ImageLoader : public KeyedService {
//
// If multiple images of the same logical size are loaded, they will be
// combined into a single ImageSkia in the ImageFamily.
- void LoadImageFamilyAsync(const extensions::Extension* extension,
+ void LoadImageFamilyAsync(const Extension* extension,
const std::vector<ImageRepresentation>& info_list,
const ImageLoaderImageFamilyCallback& callback);
« no previous file with comments | « extensions/browser/api/management/management_api_delegate.h ('k') | extensions/browser/image_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698