OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 5 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "app/animation.h" | 10 #include "app/animation.h" |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 void DraggedTabController::DidProcessMessage(const MSG& msg) { | 442 void DraggedTabController::DidProcessMessage(const MSG& msg) { |
443 // If the user presses ESC during a drag, we need to abort and revert things | 443 // If the user presses ESC during a drag, we need to abort and revert things |
444 // to the way they were. This is the most reliable way to do this since no | 444 // to the way they were. This is the most reliable way to do this since no |
445 // single view or window reliably receives events throughout all the various | 445 // single view or window reliably receives events throughout all the various |
446 // kinds of tab dragging. | 446 // kinds of tab dragging. |
447 if (msg.message == WM_KEYDOWN && msg.wParam == VK_ESCAPE) | 447 if (msg.message == WM_KEYDOWN && msg.wParam == VK_ESCAPE) |
448 EndDrag(true); | 448 EndDrag(true); |
449 } | 449 } |
450 #else | 450 #else |
451 void DraggedTabController::WillProcessEvent(GdkEvent* event) { | 451 void DraggedTabController::WillProcessEvent(GdkEvent* event) { |
| 452 } |
| 453 |
| 454 void DraggedTabController::DidProcessEvent(GdkEvent* event) { |
452 NOTIMPLEMENTED(); | 455 NOTIMPLEMENTED(); |
453 } | 456 } |
454 #endif | 457 #endif |
455 | 458 |
456 /////////////////////////////////////////////////////////////////////////////// | 459 /////////////////////////////////////////////////////////////////////////////// |
457 // DraggedTabController, private: | 460 // DraggedTabController, private: |
458 | 461 |
459 void DraggedTabController::InitWindowCreatePoint() { | 462 void DraggedTabController::InitWindowCreatePoint() { |
460 window_create_point_.SetPoint(mouse_offset_.x(), mouse_offset_.y()); | 463 window_create_point_.SetPoint(mouse_offset_.x(), mouse_offset_.y()); |
461 Tab* first_tab = attached_tabstrip_->GetTabAt(0); | 464 Tab* first_tab = attached_tabstrip_->GetTabAt(0); |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 | 1187 |
1185 // The previous call made the window appear on top of the dragged window, | 1188 // The previous call made the window appear on top of the dragged window, |
1186 // move the dragged window to the front. | 1189 // move the dragged window to the front. |
1187 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, | 1190 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, |
1188 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); | 1191 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); |
1189 #else | 1192 #else |
1190 NOTIMPLEMENTED(); | 1193 NOTIMPLEMENTED(); |
1191 #endif | 1194 #endif |
1192 } | 1195 } |
1193 } | 1196 } |
OLD | NEW |