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

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

Issue 10912098: Fix crash if window is destroyed while dragging it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual Created 8 years, 3 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool is_resizable() const { return details_.is_resizable; } 54 bool is_resizable() const { return details_.is_resizable; }
55 55
56 const gfx::Point& initial_location_in_parent() const { 56 const gfx::Point& initial_location_in_parent() const {
57 return details_.initial_location_in_parent; 57 return details_.initial_location_in_parent;
58 } 58 }
59 59
60 // Overridden from WindowResizer: 60 // Overridden from WindowResizer:
61 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; 61 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE;
62 virtual void CompleteDrag(int event_flags) OVERRIDE; 62 virtual void CompleteDrag(int event_flags) OVERRIDE;
63 virtual void RevertDrag() OVERRIDE; 63 virtual void RevertDrag() OVERRIDE;
64 virtual aura::Window* GetTarget() OVERRIDE;
64 65
65 private: 66 private:
66 WorkspaceWindowResizer(const Details& details, 67 WorkspaceWindowResizer(const Details& details,
67 const std::vector<aura::Window*>& attached_windows); 68 const std::vector<aura::Window*>& attached_windows);
68 69
69 private: 70 private:
70 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); 71 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle);
71 72
72 // Type of snapping. 73 // Type of snapping.
73 enum SnapType { 74 enum SnapType {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // been deleted. 202 // been deleted.
202 bool* destroyed_; 203 bool* destroyed_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 205 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
205 }; 206 };
206 207
207 } // namespace internal 208 } // namespace internal
208 } // namespace ash 209 } // namespace ash
209 210
210 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 211 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter_unittest.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698