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 UI_WM_CORE_SHADOW_H_ | 5 #ifndef UI_WM_CORE_SHADOW_H_ |
6 #define UI_WM_CORE_SHADOW_H_ | 6 #define UI_WM_CORE_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 #include "ui/compositor/layer_animation_observer.h" | 10 #include "ui/compositor/layer_animation_observer.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // The current style, set when the transition animation starts. | 67 // The current style, set when the transition animation starts. |
68 Style style_; | 68 Style style_; |
69 | 69 |
70 // The parent layer of the shadow layer. It serves as a container accessible | 70 // The parent layer of the shadow layer. It serves as a container accessible |
71 // from the outside to control the visibility of the shadow. | 71 // from the outside to control the visibility of the shadow. |
72 scoped_ptr<ui::Layer> layer_; | 72 scoped_ptr<ui::Layer> layer_; |
73 | 73 |
74 // The actual shadow layer corresponding to a cc::NinePatchLayer. | 74 // The actual shadow layer corresponding to a cc::NinePatchLayer. |
75 scoped_ptr<ui::Layer> shadow_layer_; | 75 scoped_ptr<ui::Layer> shadow_layer_; |
76 | 76 |
| 77 // Size of the current shadow image. |
| 78 gfx::Size image_size_; |
| 79 |
77 // Bounds of the content that the shadow encloses. | 80 // Bounds of the content that the shadow encloses. |
78 gfx::Rect content_bounds_; | 81 gfx::Rect content_bounds_; |
79 | 82 |
80 // The interior inset of the shadow images. The content bounds of the image | 83 // The interior inset of the shadow images. The content bounds of the image |
81 // grid should be set to |content_bounds_| inset by this amount. | 84 // grid should be set to |content_bounds_| inset by this amount. |
82 int interior_inset_; | 85 int interior_inset_; |
83 | 86 |
84 DISALLOW_COPY_AND_ASSIGN(Shadow); | 87 DISALLOW_COPY_AND_ASSIGN(Shadow); |
85 }; | 88 }; |
86 | 89 |
87 } // namespace wm | 90 } // namespace wm |
88 | 91 |
89 #endif // UI_WM_CORE_SHADOW_H_ | 92 #endif // UI_WM_CORE_SHADOW_H_ |
OLD | NEW |