aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc')
-rw-r--r--www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc37
1 files changed, 32 insertions, 5 deletions
diff --git a/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc b/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
index 4af07b967491..a9eb0f08a1b7 100644
--- a/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
+++ b/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
@@ -1,6 +1,15 @@
---- chrome/browser/ui/browser_command_controller.cc.orig 2022-03-25 21:59:56 UTC
+--- chrome/browser/ui/browser_command_controller.cc.orig 2022-04-21 18:48:31 UTC
+++ chrome/browser/ui/browser_command_controller.cc
-@@ -88,7 +88,7 @@
+@@ -70,7 +70,7 @@
+ #include "ui/base/ui_base_features.h"
+ #include "ui/events/keycodes/keyboard_codes.h"
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "ui/accessibility/accessibility_features.h"
+ #endif
+
+@@ -92,7 +92,7 @@
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -9,7 +18,7 @@
#include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h"
#endif
-@@ -277,7 +277,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
+@@ -283,7 +283,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -18,7 +27,7 @@
// If this key was registered by the user as a content editing hotkey, then
// it is not reserved.
ui::TextEditKeyBindingsDelegateAuraLinux* delegate =
-@@ -513,7 +513,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
+@@ -519,7 +519,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -27,7 +36,16 @@
case IDC_MINIMIZE_WINDOW:
browser_->window()->Minimize();
break;
-@@ -1040,7 +1040,7 @@ void BrowserCommandController::InitCommandState() {
+@@ -888,7 +888,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
+ ExecuteUIDebugCommand(id, browser_);
+ break;
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ case IDC_RUN_SCREEN_AI:
+ RunScreenAi(browser_);
+ break;
+@@ -1050,7 +1050,7 @@ void BrowserCommandController::InitCommandState() {
#endif
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -36,3 +54,12 @@
command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true);
command_updater_.UpdateCommandEnabled(IDC_MAXIMIZE_WINDOW, true);
command_updater_.UpdateCommandEnabled(IDC_RESTORE_WINDOW, true);
+@@ -1431,7 +1431,7 @@ void BrowserCommandController::UpdateCommandsForFullsc
+ command_updater_.UpdateCommandEnabled(
+ IDC_FOCUS_INACTIVE_POPUP_FOR_ACCESSIBILITY, main_not_fullscreen);
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ command_updater_.UpdateCommandEnabled(IDC_RUN_SCREEN_AI,
+ features::IsScreenAIEnabled());
+ #endif