Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3244)

Unified Diff: chrome/browser/gtk/tabs/tab_gtk.cc

Issue 99194: Close the hovered tab on middle mouse click in the Linux tabstrip. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_gtk.cc
===================================================================
--- chrome/browser/gtk/tabs/tab_gtk.cc (revision 14861)
+++ chrome/browser/gtk/tabs/tab_gtk.cc (working copy)
@@ -146,7 +146,9 @@
void TabGtk::OnMouseRelease(GdkEventButton* event) {
close_button_.get()->OnMouseRelease();
- if (event->button == 3) {
+ if (event->button == 2) {
+ delegate_->CloseTab(this);
+ } else if (event->button == 3) {
ShowContextMenu();
}
}
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698