| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // The actual shadow layer corresponding to a cc::NinePatchLayer. | 85 // The actual shadow layer corresponding to a cc::NinePatchLayer. |
| 86 std::unique_ptr<ui::Layer> shadow_layer_; | 86 std::unique_ptr<ui::Layer> shadow_layer_; |
| 87 | 87 |
| 88 // When the style changes, the old shadow cross-fades with the new one. | 88 // When the style changes, the old shadow cross-fades with the new one. |
| 89 // When non-null, this is an old |shadow_layer_| that's being animated out. | 89 // When non-null, this is an old |shadow_layer_| that's being animated out. |
| 90 std::unique_ptr<ui::Layer> fading_layer_; | 90 std::unique_ptr<ui::Layer> fading_layer_; |
| 91 | 91 |
| 92 // Bounds of the content that the shadow encloses. | 92 // Bounds of the content that the shadow encloses. |
| 93 gfx::Rect content_bounds_; | 93 gfx::Rect content_bounds_; |
| 94 | 94 |
| 95 // The elevation of the shadow image that's currently set on |shadow_layer_|. |
| 96 int effective_elevation_ = 0; |
| 97 |
| 95 DISALLOW_COPY_AND_ASSIGN(Shadow); | 98 DISALLOW_COPY_AND_ASSIGN(Shadow); |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace wm | 101 } // namespace wm |
| 99 | 102 |
| 100 #endif // UI_WM_CORE_SHADOW_H_ | 103 #endif // UI_WM_CORE_SHADOW_H_ |
| OLD | NEW |