| 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_COMMON_DRAG_DETAILS_H_ | 5 #ifndef ASH_WM_COMMON_DRAG_DETAILS_H_ |
| 6 #define ASH_WM_COMMON_DRAG_DETAILS_H_ | 6 #define ASH_WM_COMMON_DRAG_DETAILS_H_ |
| 7 | 7 |
| 8 #include "ash/wm/common/ash_wm_common_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/common/wm_types.h" | 9 #include "ash/wm/common/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 { | 13 namespace aura { |
| 14 class Window; | 14 class Window; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 namespace wm { | 19 namespace wm { |
| 20 class WmWindow; | 20 class WmWindow; |
| 21 class WindowState; | 21 class WindowState; |
| 22 } | 22 } |
| 23 | 23 |
| 24 struct ASH_WM_COMMON_EXPORT DragDetails { | 24 struct ASH_EXPORT DragDetails { |
| 25 DragDetails(wm::WmWindow* window, | 25 DragDetails(wm::WmWindow* window, |
| 26 const gfx::Point& location, | 26 const gfx::Point& location, |
| 27 int window_component, | 27 int window_component, |
| 28 // TODO(sky): make wm type. | 28 // TODO(sky): make wm type. |
| 29 aura::client::WindowMoveSource source); | 29 aura::client::WindowMoveSource source); |
| 30 ~DragDetails(); | 30 ~DragDetails(); |
| 31 | 31 |
| 32 ash::wm::WindowStateType initial_state_type; | 32 ash::wm::WindowStateType initial_state_type; |
| 33 | 33 |
| 34 // Initial bounds of the window in parent coordinates. | 34 // Initial bounds of the window in parent coordinates. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 62 // Source of the event initiating the drag. | 62 // Source of the event initiating the drag. |
| 63 const aura::client::WindowMoveSource source; | 63 const aura::client::WindowMoveSource source; |
| 64 | 64 |
| 65 // True if the window should attach to the shelf after releasing. | 65 // True if the window should attach to the shelf after releasing. |
| 66 bool should_attach_to_shelf; | 66 bool should_attach_to_shelf; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace ash | 69 } // namespace ash |
| 70 | 70 |
| 71 #endif // ASH_WM_COMMON_DRAG_DETAILS_H_ | 71 #endif // ASH_WM_COMMON_DRAG_DETAILS_H_ |
| OLD | NEW |