mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 12:10:31 -04:00
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/
171 lines
8.2 KiB
C++
171 lines
8.2 KiB
C++
--- chrome/browser/about_flags.cc.orig 2023-10-19 19:58:02 UTC
|
|
+++ chrome/browser/about_flags.cc
|
|
@@ -225,7 +225,7 @@
|
|
#include "ui/ui_features.h"
|
|
#include "url/url_features.h"
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include "base/allocator/buildflags.h"
|
|
#endif
|
|
|
|
@@ -324,7 +324,7 @@
|
|
#include "device/vr/public/cpp/features.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
|
|
#include "ui/ozone/buildflags.h"
|
|
#include "ui/ozone/public/ozone_switches.h"
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
|
@@ -338,7 +338,7 @@
|
|
#include "chrome/browser/win/titlebar_config.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
|
|
#include "chrome/browser/enterprise/profile_management/profile_management_features.h"
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
|
|
|
|
@@ -438,7 +438,7 @@ const FeatureEntry::FeatureVariation kDXGIWaitableSwap
|
|
{"Max 3 Frames", &kDXGIWaitableSwapChain3Frames, 1, nullptr}};
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = {
|
|
{flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""},
|
|
{flag_descriptions::kOzonePlatformHintChoiceAuto,
|
|
@@ -1475,7 +1475,7 @@ const FeatureEntry::FeatureVariation kChromeRefresh202
|
|
std::size(kChromeRefresh2023Level1), nullptr}};
|
|
|
|
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
|
|
- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
const FeatureEntry::FeatureParam kShortcutBoostSearchAndUrl1414[] = {
|
|
{"ShortcutBoostSearchScore", "1414"},
|
|
{"ShortcutBoostUrlScore", "1414"}};
|
|
@@ -5039,13 +5039,13 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(features::kWebShare)},
|
|
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
{"ozone-platform-hint", flag_descriptions::kOzonePlatformHintName,
|
|
flag_descriptions::kOzonePlatformHintDescription, kOsLinux,
|
|
MULTI_VALUE_TYPE(kOzonePlatformHintRuntimeChoices)},
|
|
#endif // BUILDFLAG(IS_LINUX)
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)
|
|
{"skip-undecryptable-passwords",
|
|
flag_descriptions::kSkipUndecryptablePasswordsName,
|
|
flag_descriptions::kSkipUndecryptablePasswordsDescription,
|
|
@@ -5347,7 +5347,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(feed::kFeedSportsCard)},
|
|
#endif // BUILDFLAG(IS_ANDROID)
|
|
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
|
|
- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
{"following-feed-sidepanel", flag_descriptions::kFollowingFeedSidepanelName,
|
|
flag_descriptions::kFollowingFeedSidepanelDescription, kOsDesktop,
|
|
FEATURE_VALUE_TYPE(feed::kWebUiFeed)},
|
|
@@ -6025,7 +6025,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
kOsAll, FEATURE_VALUE_TYPE(omnibox::kUseExistingAutocompleteClient)},
|
|
|
|
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
|
|
- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
{"omnibox-actions-ui-simplification",
|
|
flag_descriptions::kOmniboxActionsUISimplificationName,
|
|
flag_descriptions::kOmniboxActionsUISimplificationDescription, kOsDesktop,
|
|
@@ -6853,7 +6853,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
flag_descriptions::kParallelDownloadingDescription, kOsAll,
|
|
FEATURE_VALUE_TYPE(download::features::kParallelDownloading)},
|
|
|
|
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
{"enable-async-dns", flag_descriptions::kAsyncDnsName,
|
|
flag_descriptions::kAsyncDnsDescription, kOsWin | kOsLinux,
|
|
FEATURE_VALUE_TYPE(features::kAsyncDns)},
|
|
@@ -7848,7 +7848,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(supervised_user::kEnableProtoApiForClassifyUrl)},
|
|
#endif // BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
{"enable-network-service-sandbox",
|
|
flag_descriptions::kEnableNetworkServiceSandboxName,
|
|
flag_descriptions::kEnableNetworkServiceSandboxDescription,
|
|
@@ -8553,7 +8553,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
#endif
|
|
|
|
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
{"quick-commands", flag_descriptions::kQuickCommandsName,
|
|
flag_descriptions::kQuickCommandsDescription, kOsDesktop,
|
|
FEATURE_VALUE_TYPE(features::kQuickCommands)},
|
|
@@ -8844,7 +8844,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(ash::features::kWallpaperRefreshRevamp)},
|
|
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
|
|
|
|
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
{"enable-get-all-screens-media", flag_descriptions::kGetAllScreensMediaName,
|
|
flag_descriptions::kGetAllScreensMediaDescription,
|
|
kOsCrOS | kOsLacros | kOsLinux,
|
|
@@ -8900,7 +8900,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
|
|
#if BUILDFLAG(IS_WIN) || \
|
|
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
|
|
- BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
{
|
|
"ui-debug-tools",
|
|
flag_descriptions::kUIDebugToolsName,
|
|
@@ -9443,7 +9443,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
#endif
|
|
|
|
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
|
|
- BUILDFLAG(IS_CHROMEOS_ASH)
|
|
+ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
|
|
{"document-picture-in-picture-api",
|
|
flag_descriptions::kDocumentPictureInPictureApiName,
|
|
flag_descriptions::kDocumentPictureInPictureApiDescription,
|
|
@@ -10060,7 +10060,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
flag_descriptions::kWebUIOmniboxPopupDescription, kOsDesktop,
|
|
FEATURE_VALUE_TYPE(omnibox::kWebUIOmniboxPopup)},
|
|
|
|
-#if !BUILDFLAG(IS_LINUX)
|
|
+#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD)
|
|
{"webui-system-font", flag_descriptions::kWebUiSystemFontName,
|
|
flag_descriptions::kWebUiSystemFontDescription, kOsAll,
|
|
FEATURE_VALUE_TYPE(features::kWebUiSystemFont)},
|
|
@@ -10263,7 +10263,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
#endif
|
|
|
|
#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || \
|
|
- BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID)
|
|
+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
|
|
{"data-retention-policies-disable-sync-types-needed",
|
|
flag_descriptions::kDataRetentionPoliciesDisableSyncTypesNeededName,
|
|
flag_descriptions::kDataRetentionPoliciesDisableSyncTypesNeededDescription,
|
|
@@ -10657,7 +10657,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
FEATURE_VALUE_TYPE(features::kProcessPerSiteUpToMainFrameThreshold)},
|
|
|
|
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
{"camera-mic-preview", flag_descriptions::kCameraMicPreviewName,
|
|
flag_descriptions::kCameraMicPreviewDescription,
|
|
static_cast<unsigned short>(kOsMac | kOsWin | kOsLinux | kOsFuchsia),
|
|
@@ -10834,7 +10834,7 @@ const FeatureEntry kFeatureEntries[] = {
|
|
flag_descriptions::kDigestAuthEnableSecureAlgorithmsDescription, kOsAll,
|
|
FEATURE_VALUE_TYPE(net::features::kDigestAuthEnableSecureAlgorithms)},
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
|
|
{"third-party-profile-management",
|
|
flag_descriptions::kThirdPartyProfileManagementName,
|
|
flag_descriptions::kThirdPartyProfileManagementDescription,
|