summaryrefslogtreecommitdiff
path: root/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc')
-rw-r--r--www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc65
1 files changed, 0 insertions, 65 deletions
diff --git a/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc b/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc
deleted file mode 100644
index a0a1ddf..0000000
--- a/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc
+++ /dev/null
@@ -1,65 +0,0 @@
1Index: ui/views/controls/textfield/textfield.cc
2--- ui/views/controls/textfield/textfield.cc.orig
3+++ ui/views/controls/textfield/textfield.cc
4@@ -73,7 +73,7 @@
5
6 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
7 // of lacros-chrome is complete.
8-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
9+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
10 #include "ui/base/ime/linux/text_edit_command_auralinux.h"
11 #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h"
12 #endif
13@@ -166,7 +166,7 @@ bool IsControlKeyModifier(int flags) {
14 // Control-modified key combination, but we cannot extend it to other platforms
15 // as Control has different meanings and behaviors.
16 // https://crrev.com/2580483002/#msg46
17-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
18+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
19 return flags & ui::EF_CONTROL_DOWN;
20 #else
21 return false;
22@@ -715,7 +715,7 @@ bool Textfield::OnKeyPressed(const ui::KeyEvent& event
23
24 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
25 // of lacros-chrome is complete.
26-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
27+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
28 ui::TextEditKeyBindingsDelegateAuraLinux* delegate =
29 ui::GetTextEditKeyBindingsDelegate();
30 std::vector<ui::TextEditCommandAuraLinux> commands;
31@@ -861,7 +861,7 @@ void Textfield::AboutToRequestFocusFromTabTraversal(bo
32 bool Textfield::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
33 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
34 // of lacros-chrome is complete.
35-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
36+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
37 // Skip any accelerator handling that conflicts with custom keybindings.
38 ui::TextEditKeyBindingsDelegateAuraLinux* delegate =
39 ui::GetTextEditKeyBindingsDelegate();
40@@ -1721,7 +1721,7 @@ bool Textfield::ShouldDoLearning() {
41 return false;
42 }
43
44-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
45+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
46 // TODO(https://crbug.com/952355): Implement this method to support Korean IME
47 // reconversion feature on native text fields (e.g. find bar).
48 bool Textfield::SetCompositionFromExistingText(
49@@ -2220,14 +2220,14 @@ ui::TextEditCommand Textfield::GetCommandForKeyEvent(
50 #endif
51 return ui::TextEditCommand::DELETE_BACKWARD;
52 }
53-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
54+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
55 // Only erase by line break on Linux and ChromeOS.
56 if (shift)
57 return ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE;
58 #endif
59 return ui::TextEditCommand::DELETE_WORD_BACKWARD;
60 case ui::VKEY_DELETE:
61-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
62+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
63 // Only erase by line break on Linux and ChromeOS.
64 if (shift && control)
65 return ui::TextEditCommand::DELETE_TO_END_OF_LINE;