| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // The window we're resizing. | 68 // The window we're resizing. |
| 69 aura::Window* window; | 69 aura::Window* window; |
| 70 | 70 |
| 71 // Initial bounds of the window. | 71 // Initial bounds of the window. |
| 72 gfx::Rect initial_bounds; | 72 gfx::Rect initial_bounds; |
| 73 | 73 |
| 74 // Location passed to the constructor, in |window->parent()|'s coordinates. | 74 // Location passed to the constructor, in |window->parent()|'s coordinates. |
| 75 gfx::Point initial_location_in_parent; | 75 gfx::Point initial_location_in_parent; |
| 76 | 76 |
| 77 // Initial opacity of the window. |
| 78 float initial_opacity; |
| 79 |
| 77 // The component the user pressed on. | 80 // The component the user pressed on. |
| 78 int window_component; | 81 int window_component; |
| 79 | 82 |
| 80 // Bitmask of the |kBoundsChange_| constants. | 83 // Bitmask of the |kBoundsChange_| constants. |
| 81 int bounds_change; | 84 int bounds_change; |
| 82 | 85 |
| 83 // Bitmask of the |kBoundsChangeDirection_| constants. | 86 // Bitmask of the |kBoundsChangeDirection_| constants. |
| 84 int position_change_direction; | 87 int position_change_direction; |
| 85 | 88 |
| 86 // Bitmask of the |kBoundsChangeDirection_| constants. | 89 // Bitmask of the |kBoundsChangeDirection_| constants. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Returns the height of the drag. | 125 // Returns the height of the drag. |
| 123 static int GetHeightForDrag(const Details& details, | 126 static int GetHeightForDrag(const Details& details, |
| 124 int min_height, | 127 int min_height, |
| 125 int* delta_y, | 128 int* delta_y, |
| 126 int grid_size); | 129 int grid_size); |
| 127 }; | 130 }; |
| 128 | 131 |
| 129 } // namespace aura | 132 } // namespace aura |
| 130 | 133 |
| 131 #endif // ASH_WM_WINDOW_RESIZER_H_ | 134 #endif // ASH_WM_WINDOW_RESIZER_H_ |
| OLD | NEW |