Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: ui/wm/core/shadow_types.cc

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: defaults test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wm/core/shadow_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/shadow_types.cc
diff --git a/ui/wm/core/shadow_types.cc b/ui/wm/core/shadow_types.cc
index 8d133412465babd148bff7cff07089e9218726c2..bf08bbec57e5b72081f292049f2ed898906fac4c 100644
--- a/ui/wm/core/shadow_types.cc
+++ b/ui/wm/core/shadow_types.cc
@@ -6,20 +6,16 @@
#include "ui/base/class_property.h"
-DECLARE_UI_CLASS_PROPERTY_TYPE(::wm::ShadowElevation);
+DECLARE_EXPORTED_UI_CLASS_PROPERTY_TYPE(WM_EXPORT, ::wm::ShadowElevation);
namespace wm {
-void SetShadowElevation(aura::Window* window, ShadowElevation shadow_type) {
- window->SetProperty(kShadowElevationKey, shadow_type);
-}
+DEFINE_UI_CLASS_PROPERTY_KEY(ShadowElevation,
+ kShadowElevationKey,
+ ShadowElevation::DEFAULT);
-ShadowElevation GetShadowElevation(aura::Window* window) {
- return window->GetProperty(kShadowElevationKey);
+void SetShadowElevation(aura::Window* window, ShadowElevation elevation) {
+ window->SetProperty(kShadowElevationKey, elevation);
}
-DEFINE_UI_CLASS_PROPERTY_KEY(ShadowElevation,
- kShadowElevationKey,
- ShadowElevation::NONE);
-
} // namespace wm
« no previous file with comments | « ui/wm/core/shadow_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698