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

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

Issue 42063: Merge r11299.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/169/src/
Patch Set: Created 11 years, 9 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/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab.cc
===================================================================
--- chrome/browser/views/tabs/tab.cc (revision 11412)
+++ chrome/browser/views/tabs/tab.cc (working copy)
@@ -159,15 +159,6 @@
bool Tab::OnMousePressed(const views::MouseEvent& event) {
if (event.IsLeftMouseButton()) {
- // When only one tab is present, instead of ripping it out on drag,
- // it dragged the whole window. This is done by sending a non-client
- // message which is handled by the default window procedure and causes
- // the window get the default drag-on-caption behavior.
- if (!delegate_->HasAvailableDragActions()) {
- SendMessage(GetWidget()->GetHWND(), WM_NCLBUTTONDOWN,
- 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.
« no previous file with comments | « no previous file | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698