blob: 2c44ef3afc0c08661b21dbf2c975761d1d286a9e [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2012 The Chromium Authors
[email protected]2486dce2012-05-23 17:18:192// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
6#define CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_
[email protected]2486dce2012-05-23 17:18:197
8#include "content/common/content_export.h"
9
[email protected]2486dce2012-05-23 17:18:1910namespace content {
11class RenderWidgetHostView;
12
Christopher Cameron3f04bdb2018-02-21 02:48:2513// This is the same as view->GetDeviceScaleFactor(), but will return a best
14// guess when |view| is nullptr.
Lucas Furukawa Gadani95fc3612019-04-05 22:33:4915CONTENT_EXPORT float GetScaleFactorForView(RenderWidgetHostView* view);
[email protected]2486dce2012-05-23 17:18:1916
[email protected]2486dce2012-05-23 17:18:1917} // namespace content
18
19#endif // CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_