Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: ash/wm/panels/panel_window_resizer.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698