chromium/chrome/browser/apps/app_service/app_icon/dip_px_util.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

// TODO(crbug.com/40569217): plumb through enough information to use one of
// Screen::GetDisplayNearest{Window/View/Point}. That way in multi-monitor
// setups where one screen is hidpi and the other one isn't, we don't always do
// the wrong thing.

namespace {

float GetPrimaryDisplayScaleFactor() {}

int ConvertBetweenDipAndPx(int value,
                           bool quantize_to_supported_scale_factor,
                           bool invert) {}

}  // namespace

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() {}

}  // namespace apps_util