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_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 Loading... |
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_ |
OLD | NEW |