Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | cef15da | 2012-04-26 13:38:10 | [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 UI_BASE_LAYOUT_H_ | ||||
6 | #define UI_BASE_LAYOUT_H_ | ||||
[email protected] | cef15da | 2012-04-26 13:38:10 | [diff] [blame] | 7 | |
Henrique Ferreiro | 376c765 | 2020-05-22 09:00:04 | [diff] [blame] | 8 | #include "base/component_export.h" |
[email protected] | 509e5aa | 2012-08-03 01:35:55 | [diff] [blame] | 9 | #include "ui/gfx/native_widget_types.h" |
[email protected] | cef15da | 2012-04-26 13:38:10 | [diff] [blame] | 10 | |
11 | namespace ui { | ||||
12 | |||||
Henrique Ferreiro | 7bd3fd0 | 2023-05-09 16:51:14 | [diff] [blame] | 13 | // Returns the ResourceScaleFactor used by `view`. |
Henrique Ferreiro | 376c765 | 2020-05-22 09:00:04 | [diff] [blame] | 14 | COMPONENT_EXPORT(UI_BASE) |
15 | float GetScaleFactorForNativeView(gfx::NativeView view); | ||||
[email protected] | 50b6626 | 2013-09-24 03:25:48 | [diff] [blame] | 16 | |
[email protected] | cef15da | 2012-04-26 13:38:10 | [diff] [blame] | 17 | } // namespace ui |
18 | |||||
19 | #endif // UI_BASE_LAYOUT_H_ |