#include "chrome/browser/apps/app_service/app_icon/dip_px_util.h"
#include "base/check_op.h"
#include "ui/base/resource/resource_scale_factor.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/size.h"
namespace {
float GetPrimaryDisplayScaleFactor() { … }
int ConvertBetweenDipAndPx(int value,
bool quantize_to_supported_scale_factor,
bool invert) { … }
}
namespace apps_util {
int ConvertDipToPx(int dip, bool quantize_to_supported_scale_factor) { … }
int ConvertPxToDip(int px, bool quantize_to_supported_scale_factor) { … }
int ConvertDipToPxForScale(int dip, float scale) { … }
ui::ResourceScaleFactor GetPrimaryDisplayUIScaleFactor() { … }
}