| Index: mash/wm/property_util.cc
|
| diff --git a/mash/wm/property_util.cc b/mash/wm/property_util.cc
|
| index f08cf7a50b9429343c81f8309d4d25be45e30567..6295cd0016e63f09be79197dc29be88ce9daa817 100644
|
| --- a/mash/wm/property_util.cc
|
| +++ b/mash/wm/property_util.cc
|
| @@ -7,11 +7,17 @@
|
| #include "components/mus/public/cpp/property_type_converters.h"
|
| #include "components/mus/public/cpp/window.h"
|
| #include "components/mus/public/cpp/window_property.h"
|
| +#include "mash/wm/shadow.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| #include "ui/gfx/geometry/size.h"
|
|
|
| namespace mash {
|
| namespace wm {
|
| +namespace {
|
| +
|
| +DEFINE_LOCAL_WINDOW_PROPERTY_KEY(Shadow*, kLocalShadowProperty, nullptr);
|
| +
|
| +} // namespace
|
|
|
| mus::mojom::ShowState GetWindowShowState(const mus::Window* window) {
|
| if (window->HasSharedProperty(
|
| @@ -88,5 +94,13 @@ gfx::Rect GetRestoreBounds(const mus::Window* window) {
|
| return gfx::Rect();
|
| }
|
|
|
| +void SetShadow(mus::Window* window, Shadow* shadow) {
|
| + window->SetLocalProperty(kLocalShadowProperty, shadow);
|
| +}
|
| +
|
| +Shadow* GetShadow(mus::Window* window) {
|
| + return window->GetLocalProperty(kLocalShadowProperty);
|
| +}
|
| +
|
| } // namespace wm
|
| } // namespace mash
|
|
|