Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | 2486dce | 2012-05-23 17:18:19 | [diff] [blame] | 2 | // 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] | 2486dce | 2012-05-23 17:18:19 | [diff] [blame] | 7 | |
8 | #include "content/common/content_export.h" | ||||
9 | |||||
[email protected] | 2486dce | 2012-05-23 17:18:19 | [diff] [blame] | 10 | namespace content { |
11 | class RenderWidgetHostView; | ||||
12 | |||||
Christopher Cameron | 3f04bdb | 2018-02-21 02:48:25 | [diff] [blame] | 13 | // This is the same as view->GetDeviceScaleFactor(), but will return a best |
14 | // guess when |view| is nullptr. | ||||
Lucas Furukawa Gadani | 95fc361 | 2019-04-05 22:33:49 | [diff] [blame] | 15 | CONTENT_EXPORT float GetScaleFactorForView(RenderWidgetHostView* view); |
[email protected] | 2486dce | 2012-05-23 17:18:19 | [diff] [blame] | 16 | |
[email protected] | 2486dce | 2012-05-23 17:18:19 | [diff] [blame] | 17 | } // namespace content |
18 | |||||
19 | #endif // CONTENT_BROWSER_RENDERER_HOST_DIP_UTIL_H_ |