// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GFX_IMAGE_IMAGE_FAMILY_H_ #define UI_GFX_IMAGE_IMAGE_FAMILY_H_ #include <iterator> #include <map> #include <utility> #include "ui/gfx/gfx_export.h" #include "ui/gfx/image/image.h" namespace gfx { class ImageSkia; class Size; // A collection of images at different sizes. The images should be different // representations of the same basic concept (for example, an icon) at various // sizes and (optionally) aspect ratios. A method is provided for finding the // most appropriate image to fit in a given rectangle. // // NOTE: This is not appropriate for storing an image at a single logical pixel // size, with high-DPI bitmap versions; use an Image or ImageSkia for that. Each // image in an ImageFamily should have a different logical size (and may also // include high-DPI representations). class GFX_EXPORT ImageFamily { … }; } // namespace gfx #endif // UI_GFX_IMAGE_IMAGE_FAMILY_H_