summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch
blob: 8fc406a5f233be12845e8c7e3bd4c002fd5a2bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig
+++ chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -42,6 +42,7 @@ class FrameGrabHandle : public views::Vi
     // Reserve some space for the frame to be grabbed by, even if the tabstrip
     // is full.
     // TODO(tbergquist): Define this relative to the NTB insets again.
+    if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
     return gfx::Size(42, 0);
   }
 };
--- chrome/browser/ungoogled_flag_entries.h.orig
+++ chrome/browser/ungoogled_flag_entries.h
@@ -76,4 +76,8 @@
      "Disable QR Generator",
      "Disables the QR generator for sharing page links.  ungoogled-chromium flag",
      kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)},
+    {"remove-grab-handle",
+     "Remove Grab Handle",
+     "Removes the reserved empty space in the tabstrip for moving the window.  ungoogled-chromium flag",
+     kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")},
 #endif  // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_