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

Unified Diff: chrome/browser/views/tabs/tab.cc

Issue 21268: Solved 2 bugs which caused Chrome to maximize itself when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/views/tabs/tab.cc
===================================================================
--- chrome/browser/views/tabs/tab.cc (revision 9942)
+++ chrome/browser/views/tabs/tab.cc (working copy)
@@ -158,7 +158,12 @@
}
bool Tab::OnMousePressed(const views::MouseEvent& event) {
- if (event.IsOnlyLeftMouseButton()) {
+ if (event.IsLeftMouseButton()) {
+ if (delegate_->ContainsExactlyOneTab()) {
+ SendMessage(GetWidget()->GetHWND(), WM_NCLBUTTONDOWN,
Peter Kasting 2009/02/18 16:58:25 Nit: Please add a comment explaining what the effe
idanan 2009/02/18 18:02:23 Done.
+ HTCAPTION, MAKELPARAM(event.x(), event.y()));
+ return false;
+ }
// Store whether or not we were selected just now... we only want to be
// able to drag foreground tabs, so we don't start dragging the tab if
// it was in the background.

Powered by Google App Engine
This is Rietveld 408576698