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

Unified Diff: components/mus/public/cpp/property_type_converters.h

Issue 1832133002: mus: Remove unnecessary const from property TypeConverter templates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 4 years, 9 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: components/mus/public/cpp/property_type_converters.h
diff --git a/components/mus/public/cpp/property_type_converters.h b/components/mus/public/cpp/property_type_converters.h
index cec17d659c612ba871b9878911b8cf9533bf5efb..20c0768a5f102ee5e766138971b7a2fdb612e053 100644
--- a/components/mus/public/cpp/property_type_converters.h
+++ b/components/mus/public/cpp/property_type_converters.h
@@ -27,58 +27,58 @@ namespace mojo {
// replaced with the skia.Bitmap mojom struct serialization.
template <>
-struct TypeConverter<const std::vector<uint8_t>, gfx::Rect> {
- static const std::vector<uint8_t> Convert(const gfx::Rect& input);
+struct TypeConverter<std::vector<uint8_t>, gfx::Rect> {
+ static std::vector<uint8_t> Convert(const gfx::Rect& input);
};
template <>
-struct TypeConverter<gfx::Rect, const std::vector<uint8_t>> {
+struct TypeConverter<gfx::Rect, std::vector<uint8_t>> {
static gfx::Rect Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<const std::vector<uint8_t>, gfx::Size> {
- static const std::vector<uint8_t> Convert(const gfx::Size& input);
+struct TypeConverter<std::vector<uint8_t>, gfx::Size> {
+ static std::vector<uint8_t> Convert(const gfx::Size& input);
};
template <>
-struct TypeConverter<gfx::Size, const std::vector<uint8_t>> {
+struct TypeConverter<gfx::Size, std::vector<uint8_t>> {
static gfx::Size Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<const std::vector<uint8_t>, int32_t> {
- static const std::vector<uint8_t> Convert(const int32_t& input);
+struct TypeConverter<std::vector<uint8_t>, int32_t> {
+ static std::vector<uint8_t> Convert(const int32_t& input);
};
template <>
-struct TypeConverter<int32_t, const std::vector<uint8_t>> {
+struct TypeConverter<int32_t, std::vector<uint8_t>> {
static int32_t Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<const std::vector<uint8_t>, base::string16> {
- static const std::vector<uint8_t> Convert(const base::string16& input);
+struct TypeConverter<std::vector<uint8_t>, base::string16> {
+ static std::vector<uint8_t> Convert(const base::string16& input);
};
template <>
-struct TypeConverter<base::string16, const std::vector<uint8_t>> {
+struct TypeConverter<base::string16, std::vector<uint8_t>> {
static base::string16 Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<const std::vector<uint8_t>, std::string> {
- static const std::vector<uint8_t> Convert(const std::string& input);
+struct TypeConverter<std::vector<uint8_t>, std::string> {
+ static std::vector<uint8_t> Convert(const std::string& input);
};
template <>
-struct TypeConverter<std::string, const std::vector<uint8_t>> {
+struct TypeConverter<std::string, std::vector<uint8_t>> {
static std::string Convert(const std::vector<uint8_t>& input);
};
// NOTE: These methods only serialize and deserialize the common case of RGBA
// 8888 bitmaps with premultiplied alpha.
template <>
-struct TypeConverter<const std::vector<uint8_t>, SkBitmap> {
- static const std::vector<uint8_t> Convert(const SkBitmap& input);
+struct TypeConverter<std::vector<uint8_t>, SkBitmap> {
+ static std::vector<uint8_t> Convert(const SkBitmap& input);
};
template <>
-struct TypeConverter<SkBitmap, const std::vector<uint8_t>> {
+struct TypeConverter<SkBitmap, std::vector<uint8_t>> {
static SkBitmap Convert(const std::vector<uint8_t>& input);
};

Powered by Google App Engine
This is Rietveld 408576698