| 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 29 matching lines...) Expand all Loading... |
| 40 // Snap region when dragging close to the edges. That is, as the window gets | 40 // Snap region when dragging close to the edges. That is, as the window gets |
| 41 // this close to an edge of the screen it snaps to the edge. | 41 // this close to an edge of the screen it snaps to the edge. |
| 42 static const int kScreenEdgeInset; | 42 static const int kScreenEdgeInset; |
| 43 | 43 |
| 44 virtual ~WorkspaceWindowResizer(); | 44 virtual ~WorkspaceWindowResizer(); |
| 45 | 45 |
| 46 static WorkspaceWindowResizer* Create( | 46 static WorkspaceWindowResizer* Create( |
| 47 aura::Window* window, | 47 aura::Window* window, |
| 48 const gfx::Point& location_in_parent, | 48 const gfx::Point& location_in_parent, |
| 49 int window_component, | 49 int window_component, |
| 50 aura::client::WindowMoveSource source, |
| 50 const std::vector<aura::Window*>& attached_windows); | 51 const std::vector<aura::Window*>& attached_windows); |
| 51 | 52 |
| 52 // Overridden from WindowResizer: | 53 // Overridden from WindowResizer: |
| 53 virtual void Drag(const gfx::Point& location_in_parent, | 54 virtual void Drag(const gfx::Point& location_in_parent, |
| 54 int event_flags) OVERRIDE; | 55 int event_flags) OVERRIDE; |
| 55 virtual void CompleteDrag(int event_flags) OVERRIDE; | 56 virtual void CompleteDrag(int event_flags) OVERRIDE; |
| 56 virtual void RevertDrag() OVERRIDE; | 57 virtual void RevertDrag() OVERRIDE; |
| 57 virtual aura::Window* GetTarget() OVERRIDE; | 58 virtual aura::Window* GetTarget() OVERRIDE; |
| 58 | 59 |
| 59 const gfx::Point& GetInitialLocationInParentForTest() const { | 60 const gfx::Point& GetInitialLocationInParentForTest() const { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // should attach. | 209 // should attach. |
| 209 MatchedEdge magnetism_edge_; | 210 MatchedEdge magnetism_edge_; |
| 210 | 211 |
| 211 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 212 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace internal | 215 } // namespace internal |
| 215 } // namespace ash | 216 } // namespace ash |
| 216 | 217 |
| 217 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 218 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| OLD | NEW |