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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 int grid_size); | 112 int grid_size); |
113 | 113 |
114 // Restacks the windows z-order position so that one of the windows is at the | 114 // Restacks the windows z-order position so that one of the windows is at the |
115 // top of the z-order, and the rest directly underneath it. | 115 // top of the z-order, and the rest directly underneath it. |
116 void RestackWindows(); | 116 void RestackWindows(); |
117 | 117 |
118 // Returns the SnapType for the specified point. SNAP_NONE is used if no | 118 // Returns the SnapType for the specified point. SNAP_NONE is used if no |
119 // snapping should be used. | 119 // snapping should be used. |
120 SnapType GetSnapType(const gfx::Point& location) const; | 120 SnapType GetSnapType(const gfx::Point& location) const; |
121 | 121 |
| 122 // Returns true if we should allow the cursor to warp. |
| 123 bool ShouldAllowCursorWarp() const; |
| 124 |
122 aura::Window* window() const { return details_.window; } | 125 aura::Window* window() const { return details_.window; } |
123 | 126 |
124 const Details details_; | 127 const Details details_; |
125 | 128 |
126 const std::vector<aura::Window*> attached_windows_; | 129 const std::vector<aura::Window*> attached_windows_; |
127 | 130 |
128 // Set to true once Drag() is invoked and the bounds of the window change. | 131 // Set to true once Drag() is invoked and the bounds of the window change. |
129 bool did_move_or_resize_; | 132 bool did_move_or_resize_; |
130 | 133 |
131 // The initial size of each of the windows in |attached_windows_| along the | 134 // The initial size of each of the windows in |attached_windows_| along the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // the screen. | 170 // the screen. |
168 int num_mouse_moves_since_bounds_change_; | 171 int num_mouse_moves_since_bounds_change_; |
169 | 172 |
170 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 173 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
171 }; | 174 }; |
172 | 175 |
173 } // namespace internal | 176 } // namespace internal |
174 } // namespace ash | 177 } // namespace ash |
175 | 178 |
176 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 179 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
OLD | NEW |