diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ui/base/layout.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/base/layout.h')
-rw-r--r-- | chromium/ui/base/layout.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/chromium/ui/base/layout.h b/chromium/ui/base/layout.h index fd2627bbc50..e25289b3a48 100644 --- a/chromium/ui/base/layout.h +++ b/chromium/ui/base/layout.h @@ -7,10 +7,10 @@ #include <vector> +#include "base/component_export.h" #include "base/macros.h" #include "build/build_config.h" #include "ui/base/resource/scale_factor.h" -#include "ui/base/ui_base_export.h" #include "ui/gfx/native_widget_types.h" namespace ui { @@ -18,29 +18,32 @@ namespace ui { // Changes the value of GetSupportedScaleFactors() to |scale_factors|. // Use ScopedSetSupportedScaleFactors for unit tests as not to affect the // state of other tests. -UI_BASE_EXPORT void SetSupportedScaleFactors( - const std::vector<ScaleFactor>& scale_factors); +COMPONENT_EXPORT(UI_BASE) +void SetSupportedScaleFactors(const std::vector<ScaleFactor>& scale_factors); // Returns a vector with the scale factors which are supported by this // platform, in ascending order. -UI_BASE_EXPORT const std::vector<ScaleFactor>& GetSupportedScaleFactors(); +COMPONENT_EXPORT(UI_BASE) +const std::vector<ScaleFactor>& GetSupportedScaleFactors(); // Returns the supported ScaleFactor which most closely matches |scale|. // Converting from float to ScaleFactor is inefficient and should be done as // little as possible. -UI_BASE_EXPORT ScaleFactor GetSupportedScaleFactor(float image_scale); +COMPONENT_EXPORT(UI_BASE) +ScaleFactor GetSupportedScaleFactor(float image_scale); // Returns the ScaleFactor used by |view|. -UI_BASE_EXPORT float GetScaleFactorForNativeView(gfx::NativeView view); +COMPONENT_EXPORT(UI_BASE) +float GetScaleFactorForNativeView(gfx::NativeView view); // Returns true if the scale passed in is the list of supported scales for // the platform. -UI_BASE_EXPORT bool IsSupportedScale(float scale); +COMPONENT_EXPORT(UI_BASE) bool IsSupportedScale(float scale); namespace test { // Class which changes the value of GetSupportedScaleFactors() to // |new_scale_factors| for the duration of its lifetime. -class UI_BASE_EXPORT ScopedSetSupportedScaleFactors { +class COMPONENT_EXPORT(UI_BASE) ScopedSetSupportedScaleFactors { public: explicit ScopedSetSupportedScaleFactors( const std::vector<ui::ScaleFactor>& new_scale_factors); |