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

Unified Diff: chrome/common/extensions/extension.h

Issue 501136: Merge 34812 - Add the rightclick context menu for Browser actions and Page... (Closed) Base URL: svn://chrome-svn/chrome/branches/249/src/
Patch Set: Created 11 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 | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 35008)
+++ chrome/common/extensions/extension.h (working copy)
@@ -177,6 +177,18 @@
static bool IsPrivilegeIncrease(Extension* old_extension,
Extension* new_extension);
+ // Given an extension and icon size, read it if present and decode it into
+ // result.
+ static void DecodeIcon(Extension* extension,
+ Icons icon_size,
+ scoped_ptr<SkBitmap>* result);
+
+ // Given an icon_path and icon size, read it if present and decode it into
+ // result.
+ static void DecodeIconFromPath(const FilePath& icon_path,
+ Icons icon_size,
+ scoped_ptr<SkBitmap>* result);
+
// Initialize the extension from a parsed manifest.
// If |require_id| is true, will return an error if the "id" key is missing
// from the value.
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698