mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
Changelog: - https://github.com/electron/electron/releases/tag/v22.0.2 - https://github.com/electron/electron/releases/tag/v22.0.3 - https://github.com/electron/electron/releases/tag/v22.1.0 PR: 269194 Reported by: Yonas Yanfa <yonas.yanfa@gmail.com> Approved by: mikael (maintainer)
33 lines
1.3 KiB
C++
33 lines
1.3 KiB
C++
--- electron/shell/browser/browser.h.orig 2023-01-24 16:58:16 UTC
|
|
+++ electron/shell/browser/browser.h
|
|
@@ -101,7 +101,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);
|
|
@@ -263,10 +263,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);
|
|
@@ -363,7 +363,7 @@ class Browser : public WindowListObserver {
|
|
base::Time last_dock_show_;
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
|
|
base::Value about_panel_options_;
|
|
#elif BUILDFLAG(IS_MAC)
|
|
base::DictionaryValue about_panel_options_;
|