Index: chrome/browser/ui/panels/panel_manager.cc |
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc |
index c918b8a0d9c510fdc0e6ec7146f1df72df4e3fa5..1cd92496053859f3c506fca3ccbb3de08b83047e 100644 |
--- a/chrome/browser/ui/panels/panel_manager.cc |
+++ b/chrome/browser/ui/panels/panel_manager.cc |
@@ -68,7 +68,7 @@ PanelManager::PanelManager() |
detached_strip_.reset(new DetachedPanelStrip(this)); |
docked_strip_.reset(new DockedPanelStrip(this)); |
overflow_strip_.reset(new OverflowPanelStrip(this)); |
- drag_controller_.reset(new PanelDragController()); |
+ drag_controller_.reset(new PanelDragController(this)); |
auto_hiding_desktop_bar_ = AutoHidingDesktopBar::Create(this); |
OnDisplayChanged(); |
} |
@@ -158,12 +158,13 @@ void PanelManager::OnPanelClosed(Panel* panel) { |
content::NotificationService::NoDetails()); |
} |
-void PanelManager::StartDragging(Panel* panel) { |
- drag_controller_->StartDragging(panel); |
+void PanelManager::StartDragging(Panel* panel, |
+ const gfx::Point& mouse_location) { |
+ drag_controller_->StartDragging(panel, mouse_location); |
} |
-void PanelManager::Drag(int delta_x, int delta_y) { |
- drag_controller_->Drag(delta_x, delta_y); |
+void PanelManager::Drag(const gfx::Point& mouse_location) { |
+ drag_controller_->Drag(mouse_location); |
} |
void PanelManager::EndDragging(bool cancelled) { |