| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/aura/client/window_move_client.h" | 11 #include "ui/aura/client/window_move_client.h" |
| 12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class Window; | 15 class Window; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 class WindowResizer; | |
| 20 | 19 |
| 21 namespace wm { | 20 namespace wm { |
| 22 class WindowState; | 21 class WindowState; |
| 23 } | 22 } |
| 24 | 23 |
| 25 struct ASH_EXPORT DragDetails { | 24 struct ASH_EXPORT DragDetails { |
| 26 DragDetails(aura::Window* window, | 25 DragDetails(aura::Window* window, |
| 27 const gfx::Point& location, | 26 const gfx::Point& location, |
| 28 int window_component, | 27 int window_component, |
| 29 aura::client::WindowMoveSource source); | 28 aura::client::WindowMoveSource source); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 55 const int size_change_direction; | 54 const int size_change_direction; |
| 56 | 55 |
| 57 // Will the drag actually modify the window? | 56 // Will the drag actually modify the window? |
| 58 const bool is_resizable; | 57 const bool is_resizable; |
| 59 | 58 |
| 60 // Source of the event initiating the drag. | 59 // Source of the event initiating the drag. |
| 61 const aura::client::WindowMoveSource source; | 60 const aura::client::WindowMoveSource source; |
| 62 | 61 |
| 63 // True if the window should attach to the shelf after releasing. | 62 // True if the window should attach to the shelf after releasing. |
| 64 bool should_attach_to_shelf; | 63 bool should_attach_to_shelf; |
| 65 | |
| 66 // WindowResizer that is controlling the drag. | |
| 67 WindowResizer* window_resizer; | |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 } // namespace ash | 66 } // namespace ash |
| 71 | 67 |
| 72 #endif // ASH_WM_DRAG_DETAILS_H_ | 68 #endif // ASH_WM_DRAG_DETAILS_H_ |
| OLD | NEW |