summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch')
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch34
1 files changed, 17 insertions, 17 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
index 6010902..39555a1 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
@@ -1,5 +1,5 @@
1--- chrome/browser/ui/views/tabs/tab.cc.orig 1--- a/chrome/browser/ui/views/tabs/tab.cc
2+++ chrome/browser/ui/views/tabs/tab.cc 2+++ b/chrome/browser/ui/views/tabs/tab.cc
3@@ -12,6 +12,7 @@ 3@@ -12,6 +12,7 @@
4 #include <utility> 4 #include <utility>
5 5
@@ -7,8 +7,8 @@
7+#include "base/command_line.h" 7+#include "base/command_line.h"
8 #include "base/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/metrics/user_metrics.h" 10 #include "base/memory/raw_ptr.h"
11@@ -641,6 +642,8 @@ void Tab::OnGestureEvent(ui::GestureEven 11@@ -643,6 +644,8 @@ void Tab::OnGestureEvent(ui::GestureEven
12 } 12 }
13 13
14 std::u16string Tab::GetTooltipText(const gfx::Point& p) const { 14 std::u16string Tab::GetTooltipText(const gfx::Point& p) const {
@@ -17,9 +17,9 @@
17 // Tab hover cards replace tooltips for tabs. 17 // Tab hover cards replace tooltips for tabs.
18 return std::u16string(); 18 return std::u16string();
19 } 19 }
20--- chrome/browser/ui/views/tabs/tab_strip.cc.orig 20--- a/chrome/browser/ui/views/tabs/tab_strip.cc
21+++ chrome/browser/ui/views/tabs/tab_strip.cc 21+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
22@@ -15,6 +15,7 @@ 22@@ -16,6 +16,7 @@
23 23
24 #include "base/bind.h" 24 #include "base/bind.h"
25 #include "base/callback.h" 25 #include "base/callback.h"
@@ -27,18 +27,18 @@
27 #include "base/compiler_specific.h" 27 #include "base/compiler_specific.h"
28 #include "base/containers/adapters.h" 28 #include "base/containers/adapters.h"
29 #include "base/containers/contains.h" 29 #include "base/containers/contains.h"
30@@ -2153,6 +2154,8 @@ void TabStrip::OnMouseEventInTab(views:: 30@@ -1461,6 +1462,8 @@ void TabStrip::OnMouseEventInTab(views::
31 } 31 }
32 32
33 void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) { 33 void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) {
34+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "tooltip" || 34+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "tooltip" ||
35+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "none") return; 35+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "none") return;
36 // Some operations (including e.g. starting a drag) can cause the tab focus 36 tab_container_->UpdateHoverCard(tab, update_type);
37 // to change at the same time as the tabstrip is starting to animate; the 37 }
38 // hover card should not be visible at this time. 38
39--- chrome/browser/ungoogled_flag_choices.h.orig 39--- a/chrome/browser/ungoogled_flag_choices.h
40+++ chrome/browser/ungoogled_flag_choices.h 40+++ b/chrome/browser/ungoogled_flag_choices.h
41@@ -75,4 +75,13 @@ const FeatureEntry::Choice kCloseConfirm 41@@ -70,4 +70,13 @@ const FeatureEntry::Choice kCloseConfirm
42 "close-confirmation", 42 "close-confirmation",
43 "multiple"}, 43 "multiple"},
44 }; 44 };
@@ -52,9 +52,9 @@
52+ "tooltip"}, 52+ "tooltip"},
53+}; 53+};
54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
55--- chrome/browser/ungoogled_flag_entries.h.orig 55--- a/chrome/browser/ungoogled_flag_entries.h
56+++ chrome/browser/ungoogled_flag_entries.h 56+++ b/chrome/browser/ungoogled_flag_entries.h
57@@ -88,4 +88,8 @@ 57@@ -80,4 +80,8 @@
58 "Custom New Tab Page", 58 "Custom New Tab Page",
59 "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag", 59 "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag",
60 kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")}, 60 kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")},