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 "ash/wm/window_resizer.h" | 8 #include "ash/wm/window_resizer.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // Updates the bounds of the phantom window for window dragging. Set true on | 44 // Updates the bounds of the phantom window for window dragging. Set true on |
45 // |in_original_root| if the pointer is still in |window()->GetRootWindow()|. | 45 // |in_original_root| if the pointer is still in |window()->GetRootWindow()|. |
46 void UpdateDragWindow(const gfx::Rect& bounds, bool in_original_root); | 46 void UpdateDragWindow(const gfx::Rect& bounds, bool in_original_root); |
47 | 47 |
48 // Returns true if we should allow the mouse pointer to warp. | 48 // Returns true if we should allow the mouse pointer to warp. |
49 bool ShouldAllowMouseWarp(); | 49 bool ShouldAllowMouseWarp(); |
50 | 50 |
51 scoped_ptr<WindowResizer> next_window_resizer_; | 51 scoped_ptr<WindowResizer> next_window_resizer_; |
52 | 52 |
53 // Shows a semi-transparent image of the window being dragged. | 53 // Shows a semi-transparent image of the window being dragged. |
54 scoped_ptr<DragWindowController> drag_window_controller_; | 54 std::vector<scoped_ptr<DragWindowController> > drag_window_controllers_; |
oshima
2014/12/05 22:18:15
scopdvector?
And I believe space is no longer nec
hshi1
2014/12/05 23:25:12
Done.
| |
55 | 55 |
56 gfx::Point last_mouse_location_; | 56 gfx::Point last_mouse_location_; |
57 | 57 |
58 // Current instance for use by the DragWindowResizerTest. | 58 // Current instance for use by the DragWindowResizerTest. |
59 static DragWindowResizer* instance_; | 59 static DragWindowResizer* instance_; |
60 | 60 |
61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; | 61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); | 63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace ash | 66 } // namespace ash |
67 | 67 |
68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ | 68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ |
OLD | NEW |