#include "extensions/browser/extension_icon_placeholder.h"
#include "base/i18n/rtl.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/grit/extensions_browser_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/canvas_image_source.h"
#include "ui/gfx/image/image_skia.h"
namespace extensions {
namespace {
ui::ResourceBundle::FontStyle GetFontStyleForIconSize(
extension_misc::ExtensionIcons size) { … }
gfx::Image GetBackgroundImageForIconSize(extension_misc::ExtensionIcons size) { … }
}
ExtensionIconPlaceholder::ExtensionIconPlaceholder(
extension_misc::ExtensionIcons size,
const std::string& name)
: … { … }
ExtensionIconPlaceholder::~ExtensionIconPlaceholder() { … }
gfx::Image ExtensionIconPlaceholder::CreateImage(
extension_misc::ExtensionIcons size,
const std::string& name) { … }
void ExtensionIconPlaceholder::Draw(gfx::Canvas* canvas) { … }
}