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_WORKSPACE_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/wm/window_resizer.h" | 10 #include "ash/wm/window_resizer.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 scoped_ptr<SnapSizer> snap_sizer_; | 174 scoped_ptr<SnapSizer> snap_sizer_; |
175 | 175 |
176 // Last SnapType. | 176 // Last SnapType. |
177 SnapType snap_type_; | 177 SnapType snap_type_; |
178 | 178 |
179 // Number of mouse moves since the last bounds change. Only used for phantom | 179 // Number of mouse moves since the last bounds change. Only used for phantom |
180 // placement to track when the mouse is moved while pushed against the edge of | 180 // placement to track when the mouse is moved while pushed against the edge of |
181 // the screen. | 181 // the screen. |
182 int num_mouse_moves_since_bounds_change_; | 182 int num_mouse_moves_since_bounds_change_; |
183 | 183 |
| 184 // The mouse location passed to Drag(). |
| 185 gfx::Point last_mouse_location_; |
| 186 |
184 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 187 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
185 }; | 188 }; |
186 | 189 |
187 } // namespace internal | 190 } // namespace internal |
188 } // namespace ash | 191 } // namespace ash |
189 | 192 |
190 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 193 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
OLD | NEW |