aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc')
-rw-r--r--devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc80
1 files changed, 0 insertions, 80 deletions
diff --git a/devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc b/devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc
deleted file mode 100644
index d2b59cdf1a23..000000000000
--- a/devel/electron33/files/patch-chrome_browser_ui_browser__command__controller.cc
+++ /dev/null
@@ -1,80 +0,0 @@
---- chrome/browser/ui/browser_command_controller.cc.orig 2024-10-16 21:31:02 UTC
-+++ chrome/browser/ui/browser_command_controller.cc
-@@ -129,7 +129,7 @@
- #include "components/user_manager/user_manager.h"
- #endif
-
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- #include "ui/base/ime/text_input_flags.h"
- #include "ui/linux/linux_ui.h"
- #endif
-@@ -138,7 +138,7 @@
- #include "ui/ozone/public/ozone_platform.h"
- #endif
-
--#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
-+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
- #include "chrome/browser/ui/shortcuts/desktop_shortcuts_utils.h"
- #endif // BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
-
-@@ -319,7 +319,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
- #endif
- }
-
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // If this key was registered by the user as a content editing hotkey, then
- // it is not reserved.
- auto* linux_ui = ui::LinuxUi::instance();
-@@ -574,7 +574,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
-
- // TODO(crbug.com/40118868): Revisit the macro expression once build flag switch
- // of lacros-chrome is complete.
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
- case IDC_MINIMIZE_WINDOW:
- browser_->window()->Minimize();
- break;
-@@ -586,7 +586,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
- break;
- #endif
-
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- case IDC_USE_SYSTEM_TITLE_BAR: {
- PrefService* prefs = profile()->GetPrefs();
- prefs->SetBoolean(prefs::kUseCustomChromeFrame,
-@@ -787,7 +787,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
- break;
- case IDC_CREATE_SHORTCUT:
- base::RecordAction(base::UserMetricsAction("CreateShortcut"));
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- if (base::FeatureList::IsEnabled(features::kShortcutsNotApps)) {
- chrome::CreateDesktopShortcutForActiveWebContents(browser_);
- } else {
-@@ -1265,12 +1265,12 @@ void BrowserCommandController::InitCommandState() {
- #endif
- // TODO(crbug.com/40118868): Revisit the macro expression once build flag switch
- // of lacros-chrome is complete.
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
- command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true);
- command_updater_.UpdateCommandEnabled(IDC_MAXIMIZE_WINDOW, true);
- command_updater_.UpdateCommandEnabled(IDC_RESTORE_WINDOW, true);
- #endif
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- bool use_system_title_bar = true;
- #if BUILDFLAG(IS_OZONE)
- use_system_title_bar = ui::OzonePlatform::GetInstance()
-@@ -1601,7 +1601,7 @@ void BrowserCommandController::UpdateCommandsForTabSta
- bool can_create_web_app = web_app::CanCreateWebApp(browser_);
- command_updater_.UpdateCommandEnabled(IDC_INSTALL_PWA, can_create_web_app);
-
--#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
-+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
- if (base::FeatureList::IsEnabled(features::kShortcutsNotApps)) {
- command_updater_.UpdateCommandEnabled(
- IDC_CREATE_SHORTCUT, shortcuts::CanCreateDesktopShortcut(browser_));