blob: 81d24a4db64ccc5b3594b7fba43f91fa16da1cea [file] [log] [blame]
// Copyright (c) 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_APPS_APP_SERVICE_DIP_PX_UTIL_H_
#define CHROME_BROWSER_APPS_APP_SERVICE_DIP_PX_UTIL_H_
// Utility functions for converting between DIP (device independent pixels) and
// PX (physical pixels).
#include "ui/base/resource/scale_factor.h"
namespace apps_util {
int ConvertDipToPx(int dip);
int ConvertPxToDip(int px);
ui::ScaleFactor GetPrimaryDisplayUIScaleFactor();
} // namespace apps_util
#endif // CHROME_BROWSER_APPS_APP_SERVICE_DIP_PX_UTIL_H_