| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DOCK_DOCK_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
| 6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ | 6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
| 7 | 7 |
| 8 #include "ash/wm/dock/dock_types.h" | 8 #include "ash/wm/dock/dock_types.h" |
| 9 #include "ash/wm/window_resizer.h" | 9 #include "ash/wm/window_resizer.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/time/time.h" |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 class Point; | 16 class Point; |
| 16 class Rect; | 17 class Rect; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace aura { | 20 namespace aura { |
| 20 class RootWindow; | 21 class RootWindow; |
| 21 } | 22 } |
| 22 | 23 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void StartedDragging(); | 64 void StartedDragging(); |
| 64 | 65 |
| 65 // Informs the DockLayoutManager that the drag is complete if it was informed | 66 // Informs the DockLayoutManager that the drag is complete if it was informed |
| 66 // of the drag start. | 67 // of the drag start. |
| 67 void FinishedDragging(); | 68 void FinishedDragging(); |
| 68 | 69 |
| 69 const Details details_; | 70 const Details details_; |
| 70 | 71 |
| 71 gfx::Point last_location_; | 72 gfx::Point last_location_; |
| 72 | 73 |
| 74 base::Time last_docked_action_; |
| 75 |
| 73 // Wraps a window resizer and adds detaching / reattaching during drags. | 76 // Wraps a window resizer and adds detaching / reattaching during drags. |
| 74 scoped_ptr<WindowResizer> next_window_resizer_; | 77 scoped_ptr<WindowResizer> next_window_resizer_; |
| 75 | 78 |
| 76 // Dock container window. | 79 // Dock container window. |
| 77 internal::DockedWindowLayoutManager* dock_layout_; | 80 internal::DockedWindowLayoutManager* dock_layout_; |
| 78 internal::DockedWindowLayoutManager* initial_dock_layout_; | 81 internal::DockedWindowLayoutManager* initial_dock_layout_; |
| 79 | 82 |
| 80 // Set to true once Drag() is invoked and the bounds of the window change. | 83 // Set to true once Drag() is invoked and the bounds of the window change. |
| 81 bool did_move_or_resize_; | 84 bool did_move_or_resize_; |
| 82 | 85 |
| 83 // Set to true if the window that is being dragged was docked before drag. | 86 // Set to true if the window that is being dragged was docked before drag. |
| 84 bool was_docked_; | 87 bool was_docked_; |
| 85 | 88 |
| 86 // True if the dragged window is docked during the drag. | 89 // True if the dragged window is docked during the drag. |
| 87 bool is_docked_; | 90 bool is_docked_; |
| 88 | 91 |
| 89 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_; | 92 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_; |
| 90 | 93 |
| 91 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer); | 94 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer); |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 } // namespace internal | 97 } // namespace internal |
| 95 } // namespace ash | 98 } // namespace ash |
| 96 | 99 |
| 97 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ | 100 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
| OLD | NEW |