summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ui_views_controls_label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-ui_views_controls_label.cc')
-rw-r--r--www/chromium/files/patch-ui_views_controls_label.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/www/chromium/files/patch-ui_views_controls_label.cc b/www/chromium/files/patch-ui_views_controls_label.cc
index 4089af1be891..d16e6594f95f 100644
--- a/www/chromium/files/patch-ui_views_controls_label.cc
+++ b/www/chromium/files/patch-ui_views_controls_label.cc
@@ -1,20 +1,20 @@
---- ui/views/controls/label.cc.orig 2021-01-18 21:29:49 UTC
+--- ui/views/controls/label.cc.orig 2021-03-12 23:57:48 UTC
+++ ui/views/controls/label.cc
-@@ -773,7 +773,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
- GetFocusManager()->SetFocusedView(this);
- }
+@@ -806,7 +806,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
--#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
-+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
if (event.IsOnlyMiddleMouseButton() && GetFocusManager() && !had_focus)
GetFocusManager()->SetFocusedView(this);
#endif
-@@ -960,7 +960,7 @@ bool Label::PasteSelectionClipboard() {
- }
-
+@@ -995,7 +995,7 @@ bool Label::PasteSelectionClipboard() {
void Label::UpdateSelectionClipboard() {
--#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
-+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD)
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
if (!GetObscured()) {
ui::ScopedClipboardWriter(ui::ClipboardBuffer::kSelection)
.WriteText(GetSelectedText());