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

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

Issue 266353006: Add generateAppForLink function in chrome.management (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 7 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/extensions/bookmark_app_helper.h
===================================================================
--- chrome/browser/extensions/bookmark_app_helper.h (revision 271412)
+++ chrome/browser/extensions/bookmark_app_helper.h (working copy)
@@ -51,6 +51,12 @@
const std::vector<SkBitmap>& bitmaps,
const std::set<int>& sizes);
+ // Gets the letter that will be painted on the generated icon.
+ static char GetIconLetterForGeneratedIcon(const GURL& url);
+
+ // Gets the color that will be used for the icon's background.
+ static SkColor GetIconColorForGeneratedIcon(const SkBitmap& base_icon);
+
// Adds a square container icon of |output_size| pixels to |bitmaps| by
// drawing the given |letter| into a rounded background of |color|.
// Does nothing if an icon of |output_size| already exists in |bitmaps|.

Powered by Google App Engine
This is Rietveld 408576698