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

Unified Diff: extensions/browser/extension_icon_image.h

Issue 2609853003: Load extension icons for more scale factors. (Closed)
Patch Set: rebase Created 3 years, 11 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
Index: extensions/browser/extension_icon_image.h
diff --git a/extensions/browser/extension_icon_image.h b/extensions/browser/extension_icon_image.h
index b037fc41592f72509b9b499223316d33d45114ec..2698de2def28029b930abdf7485e551ed402aecf 100644
--- a/extensions/browser/extension_icon_image.h
+++ b/extensions/browser/extension_icon_image.h
@@ -14,7 +14,6 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "extensions/common/extension_icon_set.h"
-#include "ui/base/layout.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
@@ -90,9 +89,9 @@ class IconImage : public content::NotificationObserver {
// If representation loading is asynchronous, an empty image
// representation is returned. When the representation gets loaded the
// observers' OnExtensionIconImageLoaded() will be called.
- gfx::ImageSkiaRep LoadImageForScaleFactor(ui::ScaleFactor scale_factor);
+ gfx::ImageSkiaRep LoadImageForScale(float scale);
- void OnImageLoaded(float scale_factor, const gfx::Image& image);
+ void OnImageLoaded(float scale, const gfx::Image& image);
// content::NotificationObserver overrides:
void Observe(int type,
« no previous file with comments | « chrome/browser/extensions/extension_icon_manager_unittest.cc ('k') | extensions/browser/extension_icon_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698