--- electron/shell/browser/native_window_views.h.orig 2024-08-20 22:47:02 UTC +++ electron/shell/browser/native_window_views.h @@ -25,7 +25,7 @@ namespace electron { namespace electron { -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) class GlobalMenuBarX11; #endif @@ -161,7 +161,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 @@ -247,7 +247,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