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_COMMON_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 5 #ifndef ASH_COMMON_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
6 #define ASH_COMMON_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 6 #define ASH_COMMON_WM_PANELS_PANEL_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void UpdateLauncherPosition(); | 61 void UpdateLauncherPosition(); |
62 | 62 |
63 // Last pointer location in screen coordinates. | 63 // Last pointer location in screen coordinates. |
64 gfx::Point last_location_; | 64 gfx::Point last_location_; |
65 | 65 |
66 // Wraps a window resizer and adds panel detaching / reattaching and snapping | 66 // Wraps a window resizer and adds panel detaching / reattaching and snapping |
67 // to launcher behavior during drags. | 67 // to launcher behavior during drags. |
68 std::unique_ptr<WindowResizer> next_window_resizer_; | 68 std::unique_ptr<WindowResizer> next_window_resizer_; |
69 | 69 |
70 // Panel container window. | 70 // Panel container window. |
71 wm::WmWindow* panel_container_; | 71 WmWindow* panel_container_; |
72 wm::WmWindow* initial_panel_container_; | 72 WmWindow* initial_panel_container_; |
73 | 73 |
74 // Set to true once Drag() is invoked and the bounds of the window change. | 74 // Set to true once Drag() is invoked and the bounds of the window change. |
75 bool did_move_or_resize_; | 75 bool did_move_or_resize_; |
76 | 76 |
77 // True if the window started attached to the launcher. | 77 // True if the window started attached to the launcher. |
78 const bool was_attached_; | 78 const bool was_attached_; |
79 | 79 |
80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; | 80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); | 82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace ash | 85 } // namespace ash |
86 | 86 |
87 #endif // ASH_COMMON_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 87 #endif // ASH_COMMON_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
OLD | NEW |