| 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_DRAG_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_DRAG_WINDOW_RESIZER_H_ |
| 6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_ | 6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/wm/window_resizer.h" | 10 #include "ash/wm/window_resizer.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 explicit DragWindowResizer(WindowResizer* next_window_resizer, | 45 explicit DragWindowResizer(WindowResizer* next_window_resizer, |
| 46 wm::WindowState* window_state); | 46 wm::WindowState* window_state); |
| 47 | 47 |
| 48 // Updates the bounds of the drag window for window dragging. | 48 // Updates the bounds of the drag window for window dragging. |
| 49 void UpdateDragWindow(const gfx::Rect& bounds_in_parent, | 49 void UpdateDragWindow(const gfx::Rect& bounds_in_parent, |
| 50 const gfx::Point& drag_location_in_screen); | 50 const gfx::Point& drag_location_in_screen); |
| 51 | 51 |
| 52 // Returns true if we should allow the mouse pointer to warp. | 52 // Returns true if we should allow the mouse pointer to warp. |
| 53 bool ShouldAllowMouseWarp(); | 53 bool ShouldAllowMouseWarp(); |
| 54 | 54 |
| 55 aura::Window* GetAuraTarget(); |
| 56 |
| 55 std::unique_ptr<WindowResizer> next_window_resizer_; | 57 std::unique_ptr<WindowResizer> next_window_resizer_; |
| 56 | 58 |
| 57 // Shows a semi-transparent image of the window being dragged. | 59 // Shows a semi-transparent image of the window being dragged. |
| 58 std::unique_ptr<DragWindowController> drag_window_controller_; | 60 std::unique_ptr<DragWindowController> drag_window_controller_; |
| 59 | 61 |
| 60 gfx::Point last_mouse_location_; | 62 gfx::Point last_mouse_location_; |
| 61 | 63 |
| 62 // Current instance for use by the DragWindowResizerTest. | 64 // Current instance for use by the DragWindowResizerTest. |
| 63 static DragWindowResizer* instance_; | 65 static DragWindowResizer* instance_; |
| 64 | 66 |
| 65 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; | 67 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; |
| 66 | 68 |
| 67 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); | 69 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace ash | 72 } // namespace ash |
| 71 | 73 |
| 72 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ | 74 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ |
| OLD | NEW |