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

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

Issue 64853004: Use high resolution icons where possible for streamlined hosted app icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_experiment_create_app_from_page
Patch Set: rework, add tests Created 7 years, 1 month 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_family.h
diff --git a/ui/gfx/image/image_family.h b/ui/gfx/image/image_family.h
index 93e005d18d063fd838e5f9ec56c99733c216d8fd..35eae462e482dcdb01dd249c66f1b6ff33f0b384 100644
--- a/ui/gfx/image/image_family.h
+++ b/ui/gfx/image/image_family.h
@@ -106,6 +106,9 @@ class GFX_EXPORT ImageFamily {
// Determines whether the image family has no images in it.
bool empty() const { return map_.empty(); }
+ // Returns the number of images in the family.
+ size_t size() const { return map_.size(); }
+
// Removes all images from the family.
void clear() { return map_.clear(); }

Powered by Google App Engine
This is Rietveld 408576698