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

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

Issue 9616037: Change panel drag related methods to use mouse location in screen coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac trybot Created 8 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
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 22195b606c1c80206c556c8db69655958b77c525..3fc9ebbfd566905e19fbbc81ed05a5ecb9b21ab4 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -161,12 +161,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