Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 67403003: Don't lock the cursor when dragging or resizing a window with touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698