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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/panels/panel_collection.h" | 9 #include "chrome/browser/ui/panels/panel_collection.h" |
10 #include "ui/gfx/vector2d.h" | 10 #include "ui/gfx/geometry/vector2d.h" |
11 | 11 |
12 class Panel; | 12 class Panel; |
13 class PanelCollection; | 13 class PanelCollection; |
14 class PanelManager; | 14 class PanelManager; |
15 namespace gfx { | 15 namespace gfx { |
16 class Point; | 16 class Point; |
17 class Rect; | 17 class Rect; |
18 } | 18 } |
19 | 19 |
20 // Controls all the drags initiated for all panels, including detaching, | 20 // Controls all the drags initiated for all panels, including detaching, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 PanelCollection* dragging_panel_original_collection_; | 94 PanelCollection* dragging_panel_original_collection_; |
95 | 95 |
96 // The offset from mouse location to the panel position when the drag | 96 // The offset from mouse location to the panel position when the drag |
97 // starts. | 97 // starts. |
98 gfx::Vector2d offset_from_mouse_location_on_drag_start_; | 98 gfx::Vector2d offset_from_mouse_location_on_drag_start_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(PanelDragController); | 100 DISALLOW_COPY_AND_ASSIGN(PanelDragController); |
101 }; | 101 }; |
102 | 102 |
103 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ | 103 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_CONTROLLER_H_ |
OLD | NEW |