#ifndef CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
#define CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
#include "content/common/content_export.h"
#include "ui/base/layout.h"
namespace gfx {
class Point;
class Rect;
class Size;
}
namespace content {
class RenderWidgetHostView;
CONTENT_EXPORT ui::ScaleFactor GetScaleFactorForView(
const RenderWidgetHostView* view);
CONTENT_EXPORT gfx::Point ConvertViewPointToDIP(
const RenderWidgetHostView* view, const gfx::Point& point_in_pixel);
CONTENT_EXPORT gfx::Size ConvertViewSizeToPixel(
const RenderWidgetHostView* view, const gfx::Size& size_in_dip);
CONTENT_EXPORT gfx::Rect ConvertViewRectToPixel(
const RenderWidgetHostView* view, const gfx::Rect& rect_in_dip);
CONTENT_EXPORT gfx::Size ConvertSizeToDIP(
float scale_factor, const gfx::Size& size_in_pixel);
CONTENT_EXPORT gfx::Rect ConvertRectToDIP(
float scale_factor, const gfx::Rect& rect_in_pixel);
CONTENT_EXPORT gfx::Rect ConvertRectToPixel(
float scale_factor, const gfx::Rect& rect_in_dip);
}
#endif