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

Unified Diff: ui/aura/window_property.h

Issue 2499933003: Expand aura::PropertyConverter support. (Closed)
Patch Set: Fix the other new unit test. Created 4 years, 1 month 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/aura/test/aura_test_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_property.h
diff --git a/ui/aura/window_property.h b/ui/aura/window_property.h
index b3774d66597c98ff5ae8c2a1ce4dc13960583ba0..6c2bbb481b656992a30d526fbc6971081cdfe482 100644
--- a/ui/aura/window_property.h
+++ b/ui/aura/window_property.h
@@ -110,21 +110,22 @@ class AURA_EXPORT PropertyHelper {
} // namespace aura
// Macros to instantiate the property getter/setter template functions.
-#define DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(EXPORT, T) \
- namespace aura { \
- template<> EXPORT void aura::Window::SetProperty( \
- const WindowProperty<T >* property, T value) { \
- subtle::PropertyHelper::Set<T>(this, property, value); \
- } \
- template<> EXPORT T Window::GetProperty( \
- const WindowProperty<T >* property) const { \
- return subtle::PropertyHelper::Get<T>(this, property); \
- } \
- template<> EXPORT void Window::ClearProperty( \
- const WindowProperty<T >* property) { \
- subtle::PropertyHelper::Clear<T>(this, property); \
- } \
- }
+#define DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(EXPORT, T) \
+ namespace aura { \
+ template <> \
+ EXPORT void Window::SetProperty(const WindowProperty<T>* property, \
+ T value) { \
+ subtle::PropertyHelper::Set<T>(this, property, value); \
+ } \
+ template <> \
+ EXPORT T Window::GetProperty(const WindowProperty<T>* property) const { \
+ return subtle::PropertyHelper::Get<T>(this, property); \
+ } \
+ template <> \
+ EXPORT void Window::ClearProperty(const WindowProperty<T>* property) { \
+ subtle::PropertyHelper::Clear<T>(this, property); \
+ } \
+ }
#define DECLARE_WINDOW_PROPERTY_TYPE(T) \
DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(, T)
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698