Chromium Code Reviews| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 const gfx::Point& location, | 64 const gfx::Point& location, |
| 65 int window_component); | 65 int window_component); |
| 66 ~Details(); | 66 ~Details(); |
| 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 // This are the restore bounds of the window if it is a normal window and | |
|
sky
2012/09/06 19:45:11
Is there any reason to special case this? Can't yo
Mr4D (OOO till 08-26)
2012/09/06 23:16:13
Yes, because in case of a revert I need to know if
| |
| 75 // the user action is trying to drag the window. | |
| 76 gfx::Rect restore_bounds; | |
| 77 | |
| 74 // Location passed to the constructor, in |window->parent()|'s coordinates. | 78 // Location passed to the constructor, in |window->parent()|'s coordinates. |
| 75 gfx::Point initial_location_in_parent; | 79 gfx::Point initial_location_in_parent; |
| 76 | 80 |
| 77 // Initial opacity of the window. | 81 // Initial opacity of the window. |
| 78 float initial_opacity; | 82 float initial_opacity; |
| 79 | 83 |
| 80 // The component the user pressed on. | 84 // The component the user pressed on. |
| 81 int window_component; | 85 int window_component; |
| 82 | 86 |
| 83 // Bitmask of the |kBoundsChange_| constants. | 87 // Bitmask of the |kBoundsChange_| constants. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // Returns the height of the drag. | 129 // Returns the height of the drag. |
| 126 static int GetHeightForDrag(const Details& details, | 130 static int GetHeightForDrag(const Details& details, |
| 127 int min_height, | 131 int min_height, |
| 128 int* delta_y, | 132 int* delta_y, |
| 129 int grid_size); | 133 int grid_size); |
| 130 }; | 134 }; |
| 131 | 135 |
| 132 } // namespace aura | 136 } // namespace aura |
| 133 | 137 |
| 134 #endif // ASH_WM_WINDOW_RESIZER_H_ | 138 #endif // ASH_WM_WINDOW_RESIZER_H_ |
| OLD | NEW |