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

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/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) {

Powered by Google App Engine
This is Rietveld 408576698