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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void RevertDrag() OVERRIDE; | 70 virtual void RevertDrag() OVERRIDE; |
71 virtual aura::Window* GetTarget() OVERRIDE; | 71 virtual aura::Window* GetTarget() OVERRIDE; |
72 | 72 |
73 private: | 73 private: |
74 WorkspaceWindowResizer(const Details& details, | 74 WorkspaceWindowResizer(const Details& details, |
75 const std::vector<aura::Window*>& attached_windows); | 75 const std::vector<aura::Window*>& attached_windows); |
76 | 76 |
77 private: | 77 private: |
78 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); | 78 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); |
79 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, CancelSnapPhantom); | 79 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, CancelSnapPhantom); |
| 80 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomSnapMaxSize); |
80 | 81 |
81 // Type of snapping. | 82 // Type of snapping. |
82 enum SnapType { | 83 enum SnapType { |
83 // Snap to the left/right edge of the screen. | 84 // Snap to the left/right edge of the screen. |
84 SNAP_LEFT_EDGE, | 85 SNAP_LEFT_EDGE, |
85 SNAP_RIGHT_EDGE, | 86 SNAP_RIGHT_EDGE, |
86 | 87 |
87 // No snap position. | 88 // No snap position. |
88 SNAP_NONE | 89 SNAP_NONE |
89 }; | 90 }; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // should attach. | 236 // should attach. |
236 MatchedEdge magnetism_edge_; | 237 MatchedEdge magnetism_edge_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 239 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
239 }; | 240 }; |
240 | 241 |
241 } // namespace internal | 242 } // namespace internal |
242 } // namespace ash | 243 } // namespace ash |
243 | 244 |
244 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 245 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
OLD | NEW |