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

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

Issue 127053005: Cleanup: remove Details::window. Use GetTarget() when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void RestackWindows(); 156 void RestackWindows();
157 157
158 // Returns the SnapType for the specified point. SNAP_NONE is used if no 158 // Returns the SnapType for the specified point. SNAP_NONE is used if no
159 // snapping should be used. 159 // snapping should be used.
160 SnapType GetSnapType(const gfx::Point& location) const; 160 SnapType GetSnapType(const gfx::Point& location) const;
161 161
162 // Docks the dragged window if |should_dock| and the window can be docked. 162 // Docks the dragged window if |should_dock| and the window can be docked.
163 // Undocks the window if |should_dock| is false. 163 // Undocks the window if |should_dock| is false.
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* GetTarget() const { return details_.window(); }
varkha 2014/01/08 23:46:56 Should this be virtual OVERRIDE?
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_; 174 bool did_lock_cursor_;
175 175
176 // 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.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Current instance for use by the WorkspaceWindowResizerTest. 227 // Current instance for use by the WorkspaceWindowResizerTest.
228 static WorkspaceWindowResizer* instance_; 228 static WorkspaceWindowResizer* instance_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 230 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
231 }; 231 };
232 232
233 } // namespace internal 233 } // namespace internal
234 } // namespace ash 234 } // namespace ash
235 235
236 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 236 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698