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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void SetDraggedWindowDocked(bool should_dock); | 164 void SetDraggedWindowDocked(bool should_dock); |
165 | 165 |
166 aura::Window* window() const { return details_.window; } | 166 aura::Window* window() const { return details_.window; } |
167 | 167 |
168 wm::WindowState* window_state() { return details_.window_state; } | 168 wm::WindowState* window_state() { return details_.window_state; } |
169 | 169 |
170 const Details details_; | 170 const Details details_; |
171 | 171 |
172 const std::vector<aura::Window*> attached_windows_; | 172 const std::vector<aura::Window*> attached_windows_; |
173 | 173 |
| 174 bool did_lock_cursor_; |
| 175 |
174 // Set to true once Drag() is invoked and the bounds of the window change. | 176 // Set to true once Drag() is invoked and the bounds of the window change. |
175 bool did_move_or_resize_; | 177 bool did_move_or_resize_; |
176 | 178 |
177 // The initial size of each of the windows in |attached_windows_| along the | 179 // The initial size of each of the windows in |attached_windows_| along the |
178 // primary axis. | 180 // primary axis. |
179 std::vector<int> initial_size_; | 181 std::vector<int> initial_size_; |
180 | 182 |
181 // Sum of the minimum sizes of the attached windows. | 183 // Sum of the minimum sizes of the attached windows. |
182 int total_min_; | 184 int total_min_; |
183 | 185 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Current instance for use by the WorkspaceWindowResizerTest. | 224 // Current instance for use by the WorkspaceWindowResizerTest. |
223 static WorkspaceWindowResizer* instance_; | 225 static WorkspaceWindowResizer* instance_; |
224 | 226 |
225 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 227 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
226 }; | 228 }; |
227 | 229 |
228 } // namespace internal | 230 } // namespace internal |
229 } // namespace ash | 231 } // namespace ash |
230 | 232 |
231 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 233 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
OLD | NEW |