#ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_ICON_GENERATOR_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_ICON_GENERATOR_H_
#include <map>
#include <set>
#include <string>
#include <vector>
#include "build/build_config.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/image/image_skia.h"
#include "url/gurl.h"
namespace web_app {
namespace icon_size {
enum { … };
}
#if BUILDFLAG(IS_MAC)
constexpr int kInstallIconSize = icon_size::k96;
constexpr int kLauncherIconSize = icon_size::k256;
#elif BUILDFLAG(IS_CHROMEOS)
constexpr int kInstallIconSize = icon_size::k96;
constexpr int kLauncherIconSize = icon_size::k128;
#else
constexpr int kInstallIconSize = …;
constexpr int kLauncherIconSize = …;
#endif
SizeToBitmap;
std::set<SquareSizePx> SizesToGenerate();
SizeToBitmap ConstrainBitmapsToSizes(const std::vector<SkBitmap>& bitmaps,
const std::set<SquareSizePx>& sizes);
SizeToBitmap ResizeIconsAndGenerateMissing(
const std::vector<SkBitmap>& icons,
const std::set<SquareSizePx>& sizes_to_generate,
char32_t icon_letter,
bool* is_generated_icon);
SizeToBitmap GenerateIcons(const std::string& app_name);
gfx::ImageSkia ConvertImageToSolidFillMonochrome(SkColor solid_color,
const gfx::ImageSkia& image);
}
#endif