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

Side by Side Diff: ash/wm/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: address comments 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
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WINDOW_RESIZER_H_
6 #define ASH_WM_WINDOW_RESIZER_H_ 6 #define ASH_WM_WINDOW_RESIZER_H_
7 7
8 #include <memory>
9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "ash/wm/drag_details.h" 11 #include "ash/wm/drag_details.h"
10 #include "ash/wm/window_state.h" 12 #include "ash/wm/window_state.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
14 #include "ui/wm/public/window_move_client.h" 15 #include "ui/wm/public/window_move_client.h"
15 16
16 namespace aura { 17 namespace aura {
17 class Window; 18 class Window;
18 } 19 }
19 20
20 namespace ash { 21 namespace ash {
21 22
22 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving 23 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 int GetWidthForDrag(int min_width, int* delta_x); 92 int GetWidthForDrag(int min_width, int* delta_x);
92 93
93 // Returns the height of the drag. 94 // Returns the height of the drag.
94 int GetHeightForDrag(int min_height, int* delta_y); 95 int GetHeightForDrag(int min_height, int* delta_y);
95 96
96 DISALLOW_COPY_AND_ASSIGN(WindowResizer); 97 DISALLOW_COPY_AND_ASSIGN(WindowResizer);
97 }; 98 };
98 99
99 // Creates a WindowResizer for |window|. This can return a scoped_ptr 100 // Creates a WindowResizer for |window|. This can return a scoped_ptr
100 // initialized with NULL if |window| should not be resized nor dragged. 101 // initialized with NULL if |window| should not be resized nor dragged.
101 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( 102 ASH_EXPORT std::unique_ptr<WindowResizer> CreateWindowResizer(
102 aura::Window* window, 103 aura::Window* window,
103 const gfx::Point& point_in_parent, 104 const gfx::Point& point_in_parent,
104 int window_component, 105 int window_component,
105 aura::client::WindowMoveSource source); 106 aura::client::WindowMoveSource source);
106 107
107 } // namespace ash 108 } // namespace ash
108 109
109 #endif // ASH_WM_WINDOW_RESIZER_H_ 110 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698