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_PANELS_PANEL_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
6 #define ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 6 #define ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
7 | 7 |
oshima
2016/04/08 07:09:42
include?
| |
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/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Rect; | 14 class Rect; |
15 class Point; | 15 class Point; |
16 } | 16 } |
17 | 17 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 void FinishDragging(); | 56 void FinishDragging(); |
57 | 57 |
58 // Updates the dragged panel's index in the launcher. | 58 // Updates the dragged panel's index in the launcher. |
59 void UpdateLauncherPosition(); | 59 void UpdateLauncherPosition(); |
60 | 60 |
61 // Last pointer location in screen coordinates. | 61 // Last pointer location in screen coordinates. |
62 gfx::Point last_location_; | 62 gfx::Point last_location_; |
63 | 63 |
64 // Wraps a window resizer and adds panel detaching / reattaching and snapping | 64 // Wraps a window resizer and adds panel detaching / reattaching and snapping |
65 // to launcher behavior during drags. | 65 // to launcher behavior during drags. |
66 scoped_ptr<WindowResizer> next_window_resizer_; | 66 std::unique_ptr<WindowResizer> next_window_resizer_; |
67 | 67 |
68 // Panel container window. | 68 // Panel container window. |
69 aura::Window* panel_container_; | 69 aura::Window* panel_container_; |
70 aura::Window* initial_panel_container_; | 70 aura::Window* initial_panel_container_; |
71 | 71 |
72 // Set to true once Drag() is invoked and the bounds of the window change. | 72 // Set to true once Drag() is invoked and the bounds of the window change. |
73 bool did_move_or_resize_; | 73 bool did_move_or_resize_; |
74 | 74 |
75 // True if the window started attached to the launcher. | 75 // True if the window started attached to the launcher. |
76 const bool was_attached_; | 76 const bool was_attached_; |
77 | 77 |
78 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; | 78 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); | 80 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace ash | 83 } // namespace ash |
84 | 84 |
85 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 85 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
OLD | NEW |