| 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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 protected: | 61 protected: |
| 62 struct Details { | 62 struct Details { |
| 63 Details(); | 63 Details(); |
| 64 Details(aura::Window* window, | 64 Details(aura::Window* window, |
| 65 const gfx::Point& location, | 65 const gfx::Point& location, |
| 66 int window_component, | 66 int window_component, |
| 67 aura::client::WindowMoveSource source); | 67 aura::client::WindowMoveSource source); |
| 68 ~Details(); | 68 ~Details(); |
| 69 | 69 |
| 70 // The window we're resizing. | 70 // The window we're resizing. |
| 71 // TODO(oshima): replace this with accessor method to | 71 aura::Window* window() const; |
| 72 // |window_state->window()|. | |
| 73 aura::Window* window; | |
| 74 | 72 |
| 75 // The ash window state for the |window| above. | 73 // The ash window state for the |window| above. |
| 76 wm::WindowState* window_state; | 74 wm::WindowState* window_state; |
| 77 | 75 |
| 78 // Initial bounds of the window in parent coordinates. | 76 // Initial bounds of the window in parent coordinates. |
| 79 gfx::Rect initial_bounds_in_parent; | 77 gfx::Rect initial_bounds_in_parent; |
| 80 | 78 |
| 81 // Restore bounds (in screen coordinates) of the window before the drag | 79 // Restore bounds (in screen coordinates) of the window before the drag |
| 82 // started. Only set if the window is normal and is being dragged. | 80 // started. Only set if the window is normal and is being dragged. |
| 83 gfx::Rect restore_bounds; | 81 gfx::Rect restore_bounds; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // initialized with NULL if |window| should not be resized nor dragged. | 146 // initialized with NULL if |window| should not be resized nor dragged. |
| 149 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( | 147 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( |
| 150 aura::Window* window, | 148 aura::Window* window, |
| 151 const gfx::Point& point_in_parent, | 149 const gfx::Point& point_in_parent, |
| 152 int window_component, | 150 int window_component, |
| 153 aura::client::WindowMoveSource source); | 151 aura::client::WindowMoveSource source); |
| 154 | 152 |
| 155 } // namespace ash | 153 } // namespace ash |
| 156 | 154 |
| 157 #endif // ASH_WM_WINDOW_RESIZER_H_ | 155 #endif // ASH_WM_WINDOW_RESIZER_H_ |
| OLD | NEW |