| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Rect; | 15 class Rect; |
| 16 } | 16 } |
| 17 namespace ui { | 17 namespace ui { |
| 18 class Layer; | 18 class Layer; |
| 19 } | 19 } |
| 20 namespace wm { | 20 namespace wm { |
| 21 class ImageGrid; | 21 class ImageGrid; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace internal { | |
| 26 | 25 |
| 27 // A class to render the resize edge effect when the user moves their mouse | 26 // A class to render the resize edge effect when the user moves their mouse |
| 28 // over a sizing edge. This is just a visual effect; the actual resize is | 27 // over a sizing edge. This is just a visual effect; the actual resize is |
| 29 // handled by the EventFilter. | 28 // handled by the EventFilter. |
| 30 class ResizeShadow { | 29 class ResizeShadow { |
| 31 public: | 30 public: |
| 32 ResizeShadow(); | 31 ResizeShadow(); |
| 33 ~ResizeShadow(); | 32 ~ResizeShadow(); |
| 34 | 33 |
| 35 // Initializes the resize effect layers for a given |window|. | 34 // Initializes the resize effect layers for a given |window|. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 53 // Images for the shadow effect. | 52 // Images for the shadow effect. |
| 54 scoped_ptr< ::wm::ImageGrid> image_grid_; | 53 scoped_ptr< ::wm::ImageGrid> image_grid_; |
| 55 | 54 |
| 56 // Hit test value from last call to ShowForHitTest(). Used to prevent | 55 // Hit test value from last call to ShowForHitTest(). Used to prevent |
| 57 // repeatedly triggering the same animations for the same hit. | 56 // repeatedly triggering the same animations for the same hit. |
| 58 int last_hit_test_; | 57 int last_hit_test_; |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(ResizeShadow); | 59 DISALLOW_COPY_AND_ASSIGN(ResizeShadow); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace internal | |
| 64 } // namespace ash | 62 } // namespace ash |
| 65 | 63 |
| 66 #endif // ASH_WM_RESIZE_SHADOW_H_ | 64 #endif // ASH_WM_RESIZE_SHADOW_H_ |
| OLD | NEW |