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

Unified Diff: chrome/browser/ui/panels/native_panel.h

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/native_panel.h
diff --git a/chrome/browser/ui/panels/native_panel.h b/chrome/browser/ui/panels/native_panel.h
index 2298b77119fdc5a4f98b94457b8a048e177c4855..a2eb4e0563d8ba19a44b5f7850cda001bf4d252e 100644
--- a/chrome/browser/ui/panels/native_panel.h
+++ b/chrome/browser/ui/panels/native_panel.h
@@ -96,9 +96,11 @@ class NativePanelTesting {
static NativePanelTesting* Create(NativePanel* native_panel);
virtual ~NativePanelTesting() {}
- virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0;
+ // |mouse_location| is in screen coordinates.
+ virtual void PressLeftMouseButtonTitlebar(
+ const gfx::Point& mouse_location) = 0;
virtual void ReleaseMouseButtonTitlebar() = 0;
- virtual void DragTitlebar(int delta_x, int delta_y) = 0;
+ virtual void DragTitlebar(const gfx::Point& mouse_location) = 0;
virtual void CancelDragTitlebar() = 0;
virtual void FinishDragTitlebar() = 0;

Powered by Google App Engine
This is Rietveld 408576698