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

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

Issue 10836065: Improve WorkspaceWindowResizer::CompleteDrag() so that the function moves the window to a root windo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 4 months 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 | « ash/test/ash_test_base.cc ('k') | 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698