Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 06:37:39 +0000
From:      "Tomek" <tomek@apostata.org>
To:        freebsd-chromium@freebsd.org
Subject:   Two patches for tabbar
Message-ID:  <15f44ed4f1af2ccf1f68e65db5dabdef@webmail.olejniczak.info>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15f44ed4f1af2ccf1f68e65db5dabdef>