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

Unified Diff: chrome/browser/extensions/image_loading_tracker.h

Issue 286001: Allow slightly larger browser and page action icons. (Closed)
Patch Set: erikkay comments Created 11 years, 2 months 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 | « no previous file | chrome/browser/extensions/image_loading_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/image_loading_tracker.h
diff --git a/chrome/browser/extensions/image_loading_tracker.h b/chrome/browser/extensions/image_loading_tracker.h
index 9732a0092c7cb5f1c8a735474d1e1a6febfc0ac6..a56aaebdb5d32a26ca7bbb0faa98e4b94420b4e0 100644
--- a/chrome/browser/extensions/image_loading_tracker.h
+++ b/chrome/browser/extensions/image_loading_tracker.h
@@ -10,6 +10,10 @@
class ExtensionResource;
class SkBitmap;
+namespace gfx {
+class Size;
+}
+
// The views need to load their icons asynchronously but might be deleted before
// the images have loaded. This class stays alive while the request is in
// progress (manages its own lifetime) and keeps track of whether the view still
@@ -44,8 +48,10 @@ class ImageLoadingTracker
// Specify image resource to load. This method must be called a number of
// times equal to the |image_count| arugment to the constructor. Calling it
- // any more or less than that is an error.
- void PostLoadImageTask(const ExtensionResource& resource);
+ // any more or less than that is an error. If the loaded image is larger than
+ // |max_size| it will be resized to those dimensions.
+ void PostLoadImageTask(const ExtensionResource& resource,
+ const gfx::Size& max_size);
private:
class LoadImageTask;
« no previous file with comments | « no previous file | chrome/browser/extensions/image_loading_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698