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

Unified Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc

Issue 10843014: Generalize ExtensionIconSet to store icon paths for custom size sets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
index 07ae2a873e118cbf77e03ab853970bd8dfb8e0cf..ed28e0540e5e5e12d3b728a8abff09ebfb61a99c 100644
--- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/gtk/gtk_util.h"
#include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/extension_icon_set.h"
#include "chrome/common/extensions/extension_resource.h"
#include "content/public/browser/render_view_host.h"
@@ -80,7 +81,7 @@ void ExtensionInfoBarGtk::OnImageLoaded(const gfx::Image& image,
SkBitmap* drop_image = rb.GetBitmapNamed(IDR_APP_DROPARROW);
- int image_size = ExtensionIconSet::EXTENSION_ICON_BITTY;
+ int image_size = extension_misc::EXTENSION_ICON_BITTY;
// The margin between the extension icon and the drop-down arrow bitmap.
static const int kDropArrowLeftMargin = 3;
scoped_ptr<gfx::Canvas> canvas(new gfx::Canvas(
@@ -112,11 +113,11 @@ void ExtensionInfoBarGtk::BuildWidgets() {
const extensions::Extension* extension =
delegate_->extension_host()->extension();
ExtensionResource icon_resource = extension->GetIconResource(
- ExtensionIconSet::EXTENSION_ICON_BITTY, ExtensionIconSet::MATCH_EXACTLY);
+ extension_misc::EXTENSION_ICON_BITTY, ExtensionIconSet::MATCH_EXACTLY);
// Create a tracker to load the image. It will report back on OnImageLoaded.
tracker_.LoadImage(extension, icon_resource,
- gfx::Size(ExtensionIconSet::EXTENSION_ICON_BITTY,
- ExtensionIconSet::EXTENSION_ICON_BITTY),
+ gfx::Size(extension_misc::EXTENSION_ICON_BITTY,
+ extension_misc::EXTENSION_ICON_BITTY),
ImageLoadingTracker::DONT_CACHE);
// Pad the bottom of the infobar by one pixel for the border.

Powered by Google App Engine
This is Rietveld 408576698