#include "chrome/browser/extensions/chrome_app_icon.h"
#include <algorithm>
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/chrome_app_icon_delegate.h"
#include "chrome/browser/extensions/extension_util.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_util.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/canvas_image_source.h"
#include "ui/gfx/image/image_skia_operations.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/extensions/gfx_utils.h"
#endif
namespace extensions {
namespace {
class RoundedCornersImageSource : public gfx::CanvasImageSource { … };
}
void ChromeAppIcon::ApplyEffects(int resource_size_in_dip,
const ResizeFunction& resize_function,
bool app_launchable,
bool rounded_corners,
Badge badge_type,
gfx::ImageSkia* image_skia) { … }
ChromeAppIcon::ChromeAppIcon(ChromeAppIconDelegate* delegate,
content::BrowserContext* browser_context,
DestroyedCallback destroyed_callback,
const std::string& app_id,
int resource_size_in_dip,
const ResizeFunction& resize_function)
: … { … }
ChromeAppIcon::~ChromeAppIcon() { … }
const Extension* ChromeAppIcon::GetExtension() { … }
void ChromeAppIcon::Reload() { … }
bool ChromeAppIcon::IsValid() const { … }
void ChromeAppIcon::UpdateIcon() { … }
void ChromeAppIcon::OnExtensionIconImageChanged(IconImage* icon) { … }
}