From owner-freebsd-chromium@FreeBSD.ORG Wed Sep 24 06:37:51 2014 Return-Path: Delivered-To: freebsd-chromium@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76313B6F for ; Wed, 24 Sep 2014 06:37:51 +0000 (UTC) Received: from olejniczak.info (olejniczak.info [85.17.214.250]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 37B7579D for ; Wed, 24 Sep 2014 06:37:50 +0000 (UTC) Received: by olejniczak.info (Postfix, from userid 65534) id EF90215AE9B; Wed, 24 Sep 2014 08:37:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on olejniczak.info X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham version=3.3.2 Received: from webmail.olejniczak.info (olejniczak.info [85.17.214.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olejniczak.info (Postfix) with ESMTPSA id C9F3615AE3C for ; Wed, 24 Sep 2014 08:37:39 +0200 (CEST) Mime-Version: 1.0 Date: Wed, 24 Sep 2014 06:37:39 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: Quoted-Printable Message-ID: <15f44ed4f1af2ccf1f68e65db5dabdef@webmail.olejniczak.info> X-Mailer: RainLoop/1.6.9.167 From: "Tomek" Subject: Two patches for tabbar To: freebsd-chromium@freebsd.org X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 06:37:51 -0000 Hello,=0A=0ABelow are two patches for tabbar:=0A=0A1. Enable middle click= on "new tab" button - this opens new tab with contents of the primary cl= ipboard.=0AIt partially helps with https://bugs.freebsd.org/bugzilla/show= _bug.cgi?id=3D192748. =0A=0A--- chrome/browser/ui/views/tabs/tab_strip.cc= .orig 2014-09-22 11:26:41.000000000 +0200=0A+++ chrome/browser/ui/views/t= abs/tab_strip.cc 2014-09-22 11:26:50.000000000 +0200=0A@@ -278,7 +278,7 @= @=0A : views::ImageButton(listener),=0A tab_strip_(tab_strip),= =0A destroyed_(NULL) {=0A-#if defined(OS_LINUX) && !defined(OS_CHRO= MEOS)=0A+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD= )=0A set_triggerable_event_flags(triggerable_event_flags() |=0A = ui::EF_MIDDLE_MOUSE_BUTTON);=0A #endif=0A=0A=0A2. = Mouse scroll on tabbar changes tab (I don't know if it is really needed b= ut it is default on linux)=0A=0A--- chrome/browser/defaults.cc.orig 2014-= 09-23 08:03:48.000000000 +0200=0A+++ chrome/browser/defaults.cc 2014-09-2= 3 07:54:58.000000000 +0200=0A@@ -49,7 +49,7 @@=0A const bool kShowOtherBr= owsersInAboutMemory =3D true;=0A #endif=0A =0A-#if defined(OS_LINUX) && != defined(OS_CHROMEOS)=0A+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ||= defined(OS_BSD)=0A const bool kScrollEventChangesTab =3D true;=0A #else= =0A const bool kScrollEventChangesTab =3D false;=0A=0A--=0ATomek