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

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

Issue 2513753003: Add string16 and name/title support to aura::PropertyConverter. (Closed)
Patch Set: Update failing test to ack all changes as failed. 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 | « no previous file | 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 93187951142fb7eea5bc25761395470b15adc36e..c15ceacba589c106392fd4079432841865108b24 100644
--- a/ui/aura/mus/property_converter.h
+++ b/ui/aura/mus/property_converter.h
@@ -65,6 +65,8 @@ class AURA_EXPORT PropertyConverter {
const char* transport_name);
void RegisterProperty(const WindowProperty<std::string*>* property,
const char* transport_name);
+ void RegisterProperty(const WindowProperty<base::string16*>* property,
+ const char* transport_name);
private:
// A pair with the aura::WindowProperty::name and the mus property name.
@@ -77,6 +79,8 @@ class AURA_EXPORT PropertyConverter {
// This supports types that can be serialized for Mojo, eg. T=std::string*.
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*>
+ string16_properties_;
DISALLOW_COPY_AND_ASSIGN(PropertyConverter);
};
« no previous file with comments | « no previous file | ui/aura/mus/property_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698