aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-ui_views_examples_widget__example.cc
blob: 9375bf3c58d20714c4b557bc5f1536af64242ed5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ui/views/examples/widget_example.cc.orig	2025-04-22 20:15:27 UTC
+++ ui/views/examples/widget_example.cc
@@ -51,7 +51,7 @@ void WidgetExample::CreateExampleView(View* container)
   modal_button->SetCallback(
       base::BindRepeating(&WidgetExample::CreateDialogWidget,
                           base::Unretained(this), modal_button, true));
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
   // Windows does not support TYPE_CONTROL top-level widgets.
   LabelButton* control_button = BuildButton(
       container, GetStringUTF16(IDS_WIDGET_CHILD_WIDGET_BUTTON_LABEL));