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