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