--- electron/shell/browser/native_window_views.h.orig 2026-06-29 20:35:15 UTC +++ electron/shell/browser/native_window_views.h @@ -30,7 +30,7 @@ class Arguments; class Arguments; } // namespace gin -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) namespace views { class FrameViewLinux; } // namespace views @@ -38,7 +38,7 @@ namespace electron { namespace electron { -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) class NativeFrameViewLinux; class GlobalMenuBarX11; #endif @@ -187,7 +187,7 @@ class NativeWindowViews : public NativeWindow, LPARAM l_param, LRESULT* result); void SetIcon(HICON small_icon, HICON app_icon); -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) void SetIcon(const gfx::ImageSkia& icon); #endif @@ -209,7 +209,7 @@ class NativeWindowViews : public NativeWindow, return overlay_symbol_color_; } -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) views::FrameViewLinux* GetFrameViewLinux() const; #endif @@ -290,7 +290,7 @@ class NativeWindowViews : public NativeWindow, // events from resizing the window. extensions::SizeConstraints old_size_constraints_; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) std::unique_ptr global_menu_bar_; #endif