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

Unified Diff: ui/aura/mus/property_converter.h

Issue 2519583002: Add gfx::ImageSkia and icon support to aura::PropertyConverter. (Closed)
Patch Set: Fix ConvertPropertyForTransport; add 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 | « services/ui/public/interfaces/window_manager.mojom ('k') | ui/aura/mus/property_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/property_converter.h
diff --git a/ui/aura/mus/property_converter.h b/ui/aura/mus/property_converter.h
index c15ceacba589c106392fd4079432841865108b24..51c190be2becbde17470516bb644a07c0de23778 100644
--- a/ui/aura/mus/property_converter.h
+++ b/ui/aura/mus/property_converter.h
@@ -61,6 +61,8 @@ class AURA_EXPORT PropertyConverter {
}
// Specializations for properties to pointer types supporting mojo conversion.
+ void RegisterProperty(const WindowProperty<gfx::ImageSkia*>* property,
+ const char* transport_name);
void RegisterProperty(const WindowProperty<gfx::Rect*>* property,
const char* transport_name);
void RegisterProperty(const WindowProperty<std::string*>* property,
@@ -77,6 +79,8 @@ class AURA_EXPORT PropertyConverter {
// Maps of aura::WindowProperty<T> to their mus property names.
// This supports types that can be serialized for Mojo, eg. T=std::string*.
+ std::map<const WindowProperty<gfx::ImageSkia*>*, const char*>
+ image_properties_;
std::map<const WindowProperty<gfx::Rect*>*, const char*> rect_properties_;
std::map<const WindowProperty<std::string*>*, const char*> string_properties_;
std::map<const WindowProperty<base::string16*>*, const char*>
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | ui/aura/mus/property_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698