| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void DraggedTabController::URLStarredChanged(TabContents* source, | 437 void DraggedTabController::URLStarredChanged(TabContents* source, |
| 438 bool starred) { | 438 bool starred) { |
| 439 // Ignored. | 439 // Ignored. |
| 440 } | 440 } |
| 441 | 441 |
| 442 void DraggedTabController::UpdateTargetURL(TabContents* source, | 442 void DraggedTabController::UpdateTargetURL(TabContents* source, |
| 443 const GURL& url) { | 443 const GURL& url) { |
| 444 // Ignored. | 444 // Ignored. |
| 445 } | 445 } |
| 446 | 446 |
| 447 ExtensionFunctionDispatcher* DraggedTabController:: | |
| 448 CreateExtensionFunctionDispatcher(RenderViewHost* render_view_host, | |
| 449 const std::string& extension_id) { | |
| 450 return new ExtensionFunctionDispatcher(render_view_host, NULL, extension_id); | |
| 451 } | |
| 452 | |
| 453 /////////////////////////////////////////////////////////////////////////////// | 447 /////////////////////////////////////////////////////////////////////////////// |
| 454 // DraggedTabController, NotificationObserver implementation: | 448 // DraggedTabController, NotificationObserver implementation: |
| 455 | 449 |
| 456 void DraggedTabController::Observe(NotificationType type, | 450 void DraggedTabController::Observe(NotificationType type, |
| 457 const NotificationSource& source, | 451 const NotificationSource& source, |
| 458 const NotificationDetails& details) { | 452 const NotificationDetails& details) { |
| 459 DCHECK(type == NotificationType::TAB_CONTENTS_DESTROYED); | 453 DCHECK(type == NotificationType::TAB_CONTENTS_DESTROYED); |
| 460 DCHECK(Source<TabContents>(source).ptr() == dragged_contents_); | 454 DCHECK(Source<TabContents>(source).ptr() == dragged_contents_); |
| 461 EndDragImpl(TAB_DESTROYED); | 455 EndDragImpl(TAB_DESTROYED); |
| 462 } | 456 } |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1227 |
| 1234 // The previous call made the window appear on top of the dragged window, | 1228 // The previous call made the window appear on top of the dragged window, |
| 1235 // move the dragged window to the front. | 1229 // move the dragged window to the front. |
| 1236 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, | 1230 SetWindowPos(view_->GetWidget()->GetNativeView(), HWND_TOP, 0, 0, 0, 0, |
| 1237 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); | 1231 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); |
| 1238 #else | 1232 #else |
| 1239 NOTIMPLEMENTED(); | 1233 NOTIMPLEMENTED(); |
| 1240 #endif | 1234 #endif |
| 1241 } | 1235 } |
| 1242 } | 1236 } |
| OLD | NEW |