diff options
Diffstat (limited to 'devel/electron23/files/patch-chrome_browser_ui_browser__command__controller.cc')
-rw-r--r-- | devel/electron23/files/patch-chrome_browser_ui_browser__command__controller.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-chrome_browser_ui_browser__command__controller.cc b/devel/electron23/files/patch-chrome_browser_ui_browser__command__controller.cc new file mode 100644 index 000000000000..2f9c5c109c59 --- /dev/null +++ b/devel/electron23/files/patch-chrome_browser_ui_browser__command__controller.cc @@ -0,0 +1,38 @@ +--- chrome/browser/ui/browser_command_controller.cc.orig 2023-02-01 18:43:13 UTC ++++ chrome/browser/ui/browser_command_controller.cc +@@ -99,7 +99,7 @@ + #include "components/user_manager/user_manager.h" + #endif + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "ui/linux/linux_ui.h" + #endif + +@@ -288,7 +288,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(); +@@ -533,7 +533,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo + + // TODO(crbug.com/1052397): 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; +@@ -1079,7 +1079,7 @@ void BrowserCommandController::InitCommandState() { + #endif + // TODO(crbug.com/1052397): 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); |