OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // The original panel strip when the drag is started. | 70 // The original panel strip when the drag is started. |
71 PanelStrip* dragging_panel_original_strip_; | 71 PanelStrip* dragging_panel_original_strip_; |
72 | 72 |
73 // The mouse location, in screen coordinates, when StartDragging or Drag was | 73 // The mouse location, in screen coordinates, when StartDragging or Drag was |
74 // pveviously called. | 74 // pveviously called. |
75 gfx::Point last_mouse_location_; | 75 gfx::Point last_mouse_location_; |
76 | 76 |
77 // The offset from mouse location to the panel position when the drag | 77 // The offset from mouse location to the panel position when the drag |
78 // starts. | 78 // starts. |
79 gfx::Point offset_from_mouse_location_on_drag_start_; | 79 gfx::Vector2d offset_from_mouse_location_on_drag_start_; |
80 | 80 |
81 // The minimum distance that the docked panel gets dragged up in order to | 81 // The minimum distance that the docked panel gets dragged up in order to |
82 // make it free-floating. | 82 // make it free-floating. |
83 static const int kDetachDockedPanelThreshold; | 83 static const int kDetachDockedPanelThreshold; |
84 | 84 |
85 // Indicates how close the bottom of the detached panel is to the bottom of | 85 // Indicates how close the bottom of the detached panel is to the bottom of |
86 // the docked area such that the detached panel becomes docked. | 86 // the docked area such that the detached panel becomes docked. |
87 static const int kDockDetachedPanelThreshold; | 87 static const int kDockDetachedPanelThreshold; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(PanelDragController); | 89 DISALLOW_COPY_AND_ASSIGN(PanelDragController); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ | 92 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ |
OLD | NEW |