| 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 ASH_WM_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_WINDOW_RESIZER_H_ |
| 6 #define ASH_WM_WINDOW_RESIZER_H_ | 6 #define ASH_WM_WINDOW_RESIZER_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 "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const gfx::Point& location, | 57 const gfx::Point& location, |
| 58 int window_component); | 58 int window_component); |
| 59 ~Details(); | 59 ~Details(); |
| 60 | 60 |
| 61 // The window we're resizing. | 61 // The window we're resizing. |
| 62 aura::Window* window; | 62 aura::Window* window; |
| 63 | 63 |
| 64 // Initial bounds of the window. | 64 // Initial bounds of the window. |
| 65 gfx::Rect initial_bounds; | 65 gfx::Rect initial_bounds; |
| 66 | 66 |
| 67 // Restore bounds (in screen coordinates) of the window before the drag |
| 68 // started. Only set if the window is normal and is being dragged. |
| 69 gfx::Rect restore_bounds; |
| 70 |
| 67 // Location passed to the constructor, in |window->parent()|'s coordinates. | 71 // Location passed to the constructor, in |window->parent()|'s coordinates. |
| 68 gfx::Point initial_location_in_parent; | 72 gfx::Point initial_location_in_parent; |
| 69 | 73 |
| 70 // Initial opacity of the window. | 74 // Initial opacity of the window. |
| 71 float initial_opacity; | 75 float initial_opacity; |
| 72 | 76 |
| 73 // The component the user pressed on. | 77 // The component the user pressed on. |
| 74 int window_component; | 78 int window_component; |
| 75 | 79 |
| 76 // Bitmask of the |kBoundsChange_| constants. | 80 // Bitmask of the |kBoundsChange_| constants. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 117 |
| 114 // Returns the height of the drag. | 118 // Returns the height of the drag. |
| 115 static int GetHeightForDrag(const Details& details, | 119 static int GetHeightForDrag(const Details& details, |
| 116 int min_height, | 120 int min_height, |
| 117 int* delta_y); | 121 int* delta_y); |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 } // namespace aura | 124 } // namespace aura |
| 121 | 125 |
| 122 #endif // ASH_WM_WINDOW_RESIZER_H_ | 126 #endif // ASH_WM_WINDOW_RESIZER_H_ |
| OLD | NEW |