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

Side by Side Diff: ash/wm/resize_shadow.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/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/root_window_layout_manager.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_RESIZE_SHADOW_H_ 5 #ifndef ASH_WM_RESIZE_SHADOW_H_
6 #define ASH_WM_RESIZE_SHADOW_H_ 6 #define ASH_WM_RESIZE_SHADOW_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 11
11 namespace aura { 12 namespace aura {
12 class Window; 13 class Window;
13 } 14 }
14 namespace gfx { 15 namespace gfx {
15 class Rect; 16 class Rect;
16 } 17 }
17 namespace ui { 18 namespace ui {
18 class Layer; 19 class Layer;
19 } 20 }
(...skipping 23 matching lines...) Expand all
43 44
44 // Updates the effect positions based on the |bounds| of the window. 45 // Updates the effect positions based on the |bounds| of the window.
45 void Layout(const gfx::Rect& bounds); 46 void Layout(const gfx::Rect& bounds);
46 47
47 int GetLastHitTestForTest() const { 48 int GetLastHitTestForTest() const {
48 return last_hit_test_; 49 return last_hit_test_;
49 } 50 }
50 51
51 private: 52 private:
52 // Images for the shadow effect. 53 // Images for the shadow effect.
53 scoped_ptr< ::wm::ImageGrid> image_grid_; 54 std::unique_ptr<::wm::ImageGrid> image_grid_;
54 55
55 // Hit test value from last call to ShowForHitTest(). Used to prevent 56 // Hit test value from last call to ShowForHitTest(). Used to prevent
56 // repeatedly triggering the same animations for the same hit. 57 // repeatedly triggering the same animations for the same hit.
57 int last_hit_test_; 58 int last_hit_test_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(ResizeShadow); 60 DISALLOW_COPY_AND_ASSIGN(ResizeShadow);
60 }; 61 };
61 62
62 } // namespace ash 63 } // namespace ash
63 64
64 #endif // ASH_WM_RESIZE_SHADOW_H_ 65 #endif // ASH_WM_RESIZE_SHADOW_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/root_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698