ports/devel/electron32/files/patch-electron_shell_browser_browser.h
Hiroki Tagato 63a5b151bf devel/electron32: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2024-09-23 04:58:21 +09:00

24 lines
961 B
C++

--- electron/shell/browser/browser.h.orig 2024-06-12 10:49:40 UTC
+++ electron/shell/browser/browser.h
@@ -145,7 +145,7 @@ class Browser : public WindowListObserver {
std::u16string GetApplicationNameForProtocol(const GURL& url);
-#if !BUILDFLAG(IS_LINUX)
+#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD)
// get the name, icon and path for an application
v8::Local<v8::Promise> GetApplicationInfoForProtocol(v8::Isolate* isolate,
const GURL& url);
@@ -273,10 +273,10 @@ class Browser : public WindowListObserver {
PCWSTR GetAppUserModelID();
#endif // BUILDFLAG(IS_WIN)
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Whether Unity launcher is running.
bool IsUnityRunning();
-#endif // BUILDFLAG(IS_LINUX)
+#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Tell the application to open a file.
bool OpenFile(const std::string& file_path);