Browse Source

kOsWindows -> kOsWin, fix #2109

implicitfield 1 year ago
parent
commit
ed197653e9

+ 15 - 2
patches/extra/ungoogled-chromium/add-flag-to-hide-fullscreen-exit-ui.patch

@@ -1,3 +1,16 @@
+--- a/chrome/browser/ui/views/frame/browser_view.cc
++++ b/chrome/browser/ui/views/frame/browser_view.cc
+@@ -1828,6 +1828,10 @@
+     ExclusiveAccessBubbleHideCallback bubble_first_hide_callback,
+     bool notify_download,
+     bool force_update) {
++  if (base::CommandLine::ForCurrentProcess()->HasSwitch(
++          "hide-fullscreen-exit-ui"))
++    return;
++
+   DCHECK(!notify_download || exclusive_access_bubble_);
+   // Trusted pinned mode does not allow to escape. So do not show the bubble.
+   bool is_trusted_pinned =
 --- a/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
 +++ b/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
 @@ -69,6 +69,10 @@ bool IsExitUiEnabled() {
@@ -19,6 +32,6 @@
       kOsDesktop, SINGLE_VALUE_TYPE("hide-extensions-menu")},
 +    {"hide-fullscreen-exit-ui",
 +     "Hide Fullscreen Exit UI",
-+     "Hides the \"X\" that appears when the mouse cursor is moved towards the top of the window in fullscreen mode. ungoogled-chromium flag.",
-+     kOsLinux | kOsWindows, SINGLE_VALUE_TYPE("hide-fullscreen-exit-ui")},
++     "Hides the \"X\" that appears when the mouse cursor is moved towards the top of the window in fullscreen mode. Additionally, this hides the \"Press F11 to exit full screen\" popup. ungoogled-chromium flag.",
++     kOsLinux | kOsWin, SINGLE_VALUE_TYPE("hide-fullscreen-exit-ui")},
  #endif  // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_