| Index: ui/wm/core/shadow_types.cc
|
| diff --git a/ui/wm/core/shadow_types.cc b/ui/wm/core/shadow_types.cc
|
| index bf08bbec57e5b72081f292049f2ed898906fac4c..3f53d1b40659824c1efee68e2ebbcb59be583a71 100644
|
| --- a/ui/wm/core/shadow_types.cc
|
| +++ b/ui/wm/core/shadow_types.cc
|
| @@ -18,4 +18,12 @@ void SetShadowElevation(aura::Window* window, ShadowElevation elevation) {
|
| window->SetProperty(kShadowElevationKey, elevation);
|
| }
|
|
|
| +bool IsValidShadowElevation(int64_t value) {
|
| + return value == int64_t(ShadowElevation::DEFAULT) ||
|
| + value == int64_t(ShadowElevation::NONE) ||
|
| + value == int64_t(ShadowElevation::SMALL) ||
|
| + value == int64_t(ShadowElevation::MEDIUM) ||
|
| + value == int64_t(ShadowElevation::LARGE);
|
| +}
|
| +
|
| } // namespace wm
|
|
|