Two patches for tabbar

Tomek tomek at apostata.org
Wed Sep 24 06:37:51 UTC 2014


Hello,

Below are two patches for tabbar:

1. Enable middle click on "new tab" button - this opens new tab with contents of the primary clipboard.
It partially helps with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192748. 

--- chrome/browser/ui/views/tabs/tab_strip.cc.orig	2014-09-22 11:26:41.000000000 +0200
+++ chrome/browser/ui/views/tabs/tab_strip.cc	2014-09-22 11:26:50.000000000 +0200
@@ -278,7 +278,7 @@
     : views::ImageButton(listener),
       tab_strip_(tab_strip),
       destroyed_(NULL) {
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD)
   set_triggerable_event_flags(triggerable_event_flags() |
                               ui::EF_MIDDLE_MOUSE_BUTTON);
 #endif


2. Mouse scroll on tabbar changes tab (I don't know if it is really needed but it is default on linux)

--- chrome/browser/defaults.cc.orig	2014-09-23 08:03:48.000000000 +0200
+++ chrome/browser/defaults.cc	2014-09-23 07:54:58.000000000 +0200
@@ -49,7 +49,7 @@
 const bool kShowOtherBrowsersInAboutMemory = true;
 #endif
 
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD)
 const bool kScrollEventChangesTab = true;
 #else
 const bool kScrollEventChangesTab = false;

--
Tomek


More information about the freebsd-chromium mailing list