diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch new file mode 100644 index 0000000..8fc406a --- /dev/null +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | --- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig | ||
| 2 | +++ chrome/browser/ui/views/frame/tab_strip_region_view.cc | ||
| 3 | @@ -42,6 +42,7 @@ class FrameGrabHandle : public views::Vi | ||
| 4 | // Reserve some space for the frame to be grabbed by, even if the tabstrip | ||
| 5 | // is full. | ||
| 6 | // TODO(tbergquist): Define this relative to the NTB insets again. | ||
| 7 | + if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0); | ||
| 8 | return gfx::Size(42, 0); | ||
| 9 | } | ||
| 10 | }; | ||
| 11 | --- chrome/browser/ungoogled_flag_entries.h.orig | ||
| 12 | +++ chrome/browser/ungoogled_flag_entries.h | ||
| 13 | @@ -76,4 +76,8 @@ | ||
| 14 | "Disable QR Generator", | ||
| 15 | "Disables the QR generator for sharing page links. ungoogled-chromium flag", | ||
| 16 | kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)}, | ||
| 17 | + {"remove-grab-handle", | ||
| 18 | + "Remove Grab Handle", | ||
| 19 | + "Removes the reserved empty space in the tabstrip for moving the window. ungoogled-chromium flag", | ||
| 20 | + kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")}, | ||
| 21 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | ||
