diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch new file mode 100644 index 0000000..6e19e76 --- /dev/null +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # Add --enable-stacked-tab-strip and --enable-tab-adjust-layout flags to tweak tab strip behavior | ||
| 2 | |||
| 3 | --- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc.orig | ||
| 4 | +++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc | ||
| 5 | @@ -83,14 +83,13 @@ using content::WebContents; | ||
| 6 | namespace { | ||
| 7 | |||
| 8 | bool DetermineTabStripLayoutStacked(PrefService* prefs, bool* adjust_layout) { | ||
| 9 | - *adjust_layout = false; | ||
| 10 | - // For ash, always allow entering stacked mode. | ||
| 11 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 12 | *adjust_layout = true; | ||
| 13 | return prefs->GetBoolean(prefs::kTabStripStackedLayout); | ||
| 14 | #else | ||
| 15 | - return base::CommandLine::ForCurrentProcess()->HasSwitch( | ||
| 16 | - switches::kForceStackedTabStripLayout); | ||
| 17 | + *adjust_layout = base::CommandLine::ForCurrentProcess()->HasSwitch("enable-tab-adjust-layout"); | ||
| 18 | + return prefs->GetBoolean(prefs::kTabStripStackedLayout) || | ||
| 19 | + base::CommandLine::ForCurrentProcess()->HasSwitch("enable-stacked-tab-strip"); | ||
| 20 | #endif | ||
| 21 | } | ||
| 22 | |||
| 23 | --- chrome/browser/ungoogled_flag_entries.h.orig | ||
| 24 | +++ chrome/browser/ungoogled_flag_entries.h | ||
| 25 | @@ -8,4 +8,8 @@ | ||
| 26 | "SetIpv6ProbeFalse", | ||
| 27 | "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.", | ||
| 28 | kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)}, | ||
| 29 | + {"enable-stacked-tab-strip", | ||
| 30 | + "Enable stacking in the tab strip", | ||
| 31 | + "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior. ungoogled-chromium flag.", | ||
| 32 | + kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")}, | ||
| 33 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | ||
