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

Unified Diff: chrome/browser/ui/views/tabs/base_tab.cc

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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
Index: chrome/browser/ui/views/tabs/base_tab.cc
diff --git a/chrome/browser/ui/views/tabs/base_tab.cc b/chrome/browser/ui/views/tabs/base_tab.cc
index 9368313b874abfebd214269393f46294b9f68a25..f2a84cfde4255f381fd4345ac6e68d42c258705a 100644
--- a/chrome/browser/ui/views/tabs/base_tab.cc
+++ b/chrome/browser/ui/views/tabs/base_tab.cc
@@ -31,6 +31,7 @@
#include "ui/gfx/favicon_size.h"
#include "ui/gfx/font.h"
#include "views/controls/button/image_button.h"
+#include "views/widget/widget.h"
sky 2011/05/03 18:38:32 Is this needed?
SteveT 2011/05/06 18:48:43 Removed.
// How long the pulse throb takes.
static const int kPulseDurationMs = 200;
@@ -301,6 +302,10 @@ bool BaseTab::OnMousePressed(const views::MouseEvent& event) {
}
} else if (!IsSelected()) {
controller()->SelectTab(this);
+ } else {
+ if (IsActive()) {
sky 2011/05/03 18:38:32 combine with else on 305
SteveT 2011/05/06 18:48:43 Done.
+ controller()->ReselectTab(this);
+ }
}
controller()->MaybeStartDrag(this, event);
}

Powered by Google App Engine
This is Rietveld 408576698