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

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: Patch to reland 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
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/browser/ui/panels/panel_titlebar_view_cocoa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b06ce79feeb9c66b9d008c28f5864f5d8e9a67f..70c9f41f9c86599dabf3b5b0e7bb66fd1ee08d88 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -155,12 +155,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) {
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/browser/ui/panels/panel_titlebar_view_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698