diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch new file mode 100644 index 0000000..7937d6f --- /dev/null +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- chrome/browser/ui/views/tabs/tab_strip.cc.orig | ||
| 2 | +++ chrome/browser/ui/views/tabs/tab_strip.cc | ||
| 3 | @@ -1909,6 +1909,8 @@ bool TabStrip::SupportsMultipleSelection | ||
| 4 | } | ||
| 5 | |||
| 6 | bool TabStrip::ShouldHideCloseButtonForTab(Tab* tab) const { | ||
| 7 | + if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons")) | ||
| 8 | + return true; | ||
| 9 | if (tab->IsActive()) | ||
| 10 | return false; | ||
| 11 | return !!touch_layout_; | ||
| 12 | --- chrome/browser/ungoogled_flag_entries.h.orig | ||
| 13 | +++ chrome/browser/ungoogled_flag_entries.h | ||
| 14 | @@ -92,4 +92,8 @@ | ||
| 15 | "Tab Hover Cards", | ||
| 16 | "Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.", | ||
| 17 | kOsDesktop, MULTI_VALUE_TYPE(kTabHoverCards)}, | ||
| 18 | + {"hide-tab-close-buttons", | ||
| 19 | + "Hide tab close buttons", | ||
| 20 | + "Hides the close buttons on tabs. ungoogled-chromium flag.", | ||
| 21 | + kOsDesktop, SINGLE_VALUE_TYPE("hide-tab-close-buttons")}, | ||
| 22 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | ||
