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

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

Issue 2632543003: Refactor and push window properties up to class properties. (Closed)
Patch Set: Created 3 years, 11 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
Index: ui/wm/core/shadow_types.cc
diff --git a/ui/wm/core/shadow_types.cc b/ui/wm/core/shadow_types.cc
index 37720ec23069a18c25cd1200137dc9b27ab19040..5cd91f47794814e3cab5cbcfc5180136c8b72ca9 100644
--- a/ui/wm/core/shadow_types.cc
+++ b/ui/wm/core/shadow_types.cc
@@ -4,9 +4,9 @@
#include "ui/wm/core/shadow_types.h"
-#include "ui/aura/window_property.h"
+#include "ui/base/class_property.h"
-DECLARE_WINDOW_PROPERTY_TYPE(wm::ShadowElevation);
+DECLARE_CLASS_PROPERTY_TYPE(::wm::ShadowElevation);
namespace wm {
@@ -18,8 +18,8 @@ ShadowElevation GetShadowElevation(aura::Window* window) {
return window->GetProperty(kShadowElevationKey);
}
-DEFINE_WINDOW_PROPERTY_KEY(ShadowElevation,
- kShadowElevationKey,
- ShadowElevation::NONE);
+DEFINE_CLASS_PROPERTY_KEY(ShadowElevation,
+ kShadowElevationKey,
+ ShadowElevation::NONE);
} // namespace wm

Powered by Google App Engine
This is Rietveld 408576698