| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // The current style, set when the transition animation starts. | 77 // The current style, set when the transition animation starts. |
| 78 Style style_ = STYLE_ACTIVE; | 78 Style style_ = STYLE_ACTIVE; |
| 79 | 79 |
| 80 // The parent layer of the shadow layer. It serves as a container accessible | 80 // The parent layer of the shadow layer. It serves as a container accessible |
| 81 // from the outside to control the visibility of the shadow. | 81 // from the outside to control the visibility of the shadow. |
| 82 std::unique_ptr<ui::Layer> layer_; | 82 std::unique_ptr<ui::Layer> layer_; |
| 83 | 83 |
| 84 // The actual shadow layer corresponding to a cc::NinePatchLayer. | 84 // The actual shadow layer corresponding to a cc::NinePatchLayer. |
| 85 std::unique_ptr<ui::Layer> shadow_layer_; | 85 std::unique_ptr<ui::Layer> shadow_layer_; |
| 86 | 86 |
| 87 // When the style changes, the old shadow cross-fades with the new one. |
| 88 // When non-null, this is an old |shadow_layer_| that's being animated out. |
| 89 std::unique_ptr<ui::Layer> fading_layer_; |
| 90 |
| 87 // Bounds of the content that the shadow encloses. | 91 // Bounds of the content that the shadow encloses. |
| 88 gfx::Rect content_bounds_; | 92 gfx::Rect content_bounds_; |
| 89 | 93 |
| 90 DISALLOW_COPY_AND_ASSIGN(Shadow); | 94 DISALLOW_COPY_AND_ASSIGN(Shadow); |
| 91 }; | 95 }; |
| 92 | 96 |
| 93 } // namespace wm | 97 } // namespace wm |
| 94 | 98 |
| 95 #endif // UI_WM_CORE_SHADOW_H_ | 99 #endif // UI_WM_CORE_SHADOW_H_ |
| OLD | NEW |