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

Unified Diff: chrome/browser/ui/webui/extension_icon_source.h

Issue 7452008: Improve layout for bookmark-apps. Add a treatment for small icons. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Submit-ready Created 9 years, 5 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 | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/extension_icon_source.h
diff --git a/chrome/browser/ui/webui/extension_icon_source.h b/chrome/browser/ui/webui/extension_icon_source.h
index 2d797c4b3673a971bde3e6efd55ebcedcb80f44f..172cc9b52299d10a4be4889f6b4e7b1424af295e 100644
--- a/chrome/browser/ui/webui/extension_icon_source.h
+++ b/chrome/browser/ui/webui/extension_icon_source.h
@@ -57,11 +57,14 @@ class ExtensionIconSource : public ChromeURLDataManager::DataSource,
// Gets the URL of the |extension| icon in the given |size|, falling back
// based on the |match| type. If |grayscale|, the URL will be for the
- // desaturated version of the icon.
+ // desaturated version of the icon. |exists|, if non-NULL, will be set to true
+ // if the icon exists; false if it will lead to a default or not-present
+ // image.
static GURL GetIconURL(const Extension* extension,
Extension::Icons icon_size,
ExtensionIconSet::MatchType match,
- bool grayscale);
+ bool grayscale,
+ bool* exists);
// A public utility function for accessing the bitmap of the image specified
// by |resource_id|.
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698