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