1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- ui/ozone/platform/x11/x11_screen_ozone.h.orig 2024-04-15 20:34:30 UTC
+++ ui/ozone/platform/x11/x11_screen_ozone.h
@@ -16,7 +16,7 @@
#include "ui/gfx/x/event.h"
#include "ui/ozone/public/platform_screen.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/linux/device_scale_factor_observer.h"
#include "ui/linux/linux_ui.h"
#endif
@@ -29,7 +29,7 @@ class X11ScreenOzone : public PlatformScreen,
class X11ScreenOzone : public PlatformScreen,
public x11::EventObserver,
public XDisplayManager::Delegate
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
,
public DeviceScaleFactorObserver
#endif
@@ -97,7 +97,7 @@ class X11ScreenOzone : public PlatformScreen,
// ui::XDisplayManager::Delegate:
void OnXDisplayListUpdated() override;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// DeviceScaleFactorObserver:
void OnDeviceScaleFactorChanged() override;
#endif
@@ -109,7 +109,7 @@ class X11ScreenOzone : public PlatformScreen,
// Indicates that |this| is initialized.
bool initialized_ = false;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::ScopedObservation<ui::LinuxUi, DeviceScaleFactorObserver>
display_scale_factor_observer_{this};
#endif
|