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

Unified Diff: ui/gfx/image/image_skia_operations.h

Issue 2209053004: Enhance chrome.app.window API with icon property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review v4 Created 4 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: ui/gfx/image/image_skia_operations.h
diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h
index a22a8408d98e573368abcb91ba8bfde2c12d56eb..64f2f832179a00fced62b74d4822f3a8b54008b5 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -93,6 +93,12 @@ class GFX_EXPORT ImageSkiaOperations {
const ImageSkia& source,
SkBitmapOperations::RotationAmount rotation);
+ // Creates an icon by painting the second icon as a badge to the first one.
+ // The second icon is in the right corner of the first icon. If the icon
+ // is valid and the badge is not, the icon will be returned.
+ static ImageSkia CreateIconWithBadge(const ImageSkia& icon,
+ const ImageSkia& badge);
+
private:
ImageSkiaOperations(); // Class for scoping only.
};

Powered by Google App Engine
This is Rietveld 408576698