OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_WM_DRAG_DETAILS_H_ | 5 #ifndef ASH_WM_DRAG_DETAILS_H_ |
6 #define ASH_WM_DRAG_DETAILS_H_ | 6 #define ASH_WM_DRAG_DETAILS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/wm_types.h" | 9 #include "ash/wm/wm_types.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
11 #include "ui/wm/public/window_move_client.h" | 11 #include "ui/wm/public/window_move_client.h" |
12 | 12 |
| 13 namespace aura { |
| 14 class Window; |
| 15 } |
| 16 |
13 namespace ash { | 17 namespace ash { |
14 | 18 |
15 class WmWindow; | |
16 | |
17 struct ASH_EXPORT DragDetails { | 19 struct ASH_EXPORT DragDetails { |
18 DragDetails(WmWindow* window, | 20 DragDetails(aura::Window* window, |
19 const gfx::Point& location, | 21 const gfx::Point& location, |
20 int window_component, | 22 int window_component, |
21 // TODO(sky): make wm type. | 23 // TODO(sky): make wm type. |
22 aura::client::WindowMoveSource source); | 24 aura::client::WindowMoveSource source); |
23 ~DragDetails(); | 25 ~DragDetails(); |
24 | 26 |
25 ash::wm::WindowStateType initial_state_type; | 27 ash::wm::WindowStateType initial_state_type; |
26 | 28 |
27 // Initial bounds of the window in parent coordinates. | 29 // Initial bounds of the window in parent coordinates. |
28 const gfx::Rect initial_bounds_in_parent; | 30 const gfx::Rect initial_bounds_in_parent; |
(...skipping 26 matching lines...) Expand all Loading... |
55 // Source of the event initiating the drag. | 57 // Source of the event initiating the drag. |
56 const aura::client::WindowMoveSource source; | 58 const aura::client::WindowMoveSource source; |
57 | 59 |
58 // True if the window should attach to the shelf after releasing. | 60 // True if the window should attach to the shelf after releasing. |
59 bool should_attach_to_shelf; | 61 bool should_attach_to_shelf; |
60 }; | 62 }; |
61 | 63 |
62 } // namespace ash | 64 } // namespace ash |
63 | 65 |
64 #endif // ASH_WM_DRAG_DETAILS_H_ | 66 #endif // ASH_WM_DRAG_DETAILS_H_ |
OLD | NEW |