| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/mus/public/cpp/property_type_converters.h" | 5 #include "components/mus/public/cpp/property_type_converters.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 8 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| 9 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 10 | 12 |
| 11 namespace mojo { | 13 namespace mojo { |
| 12 | 14 |
| 13 // static | 15 // static |
| 14 const std::vector<uint8_t> | 16 const std::vector<uint8_t> |
| 15 TypeConverter<const std::vector<uint8_t>, gfx::Rect>::Convert( | 17 TypeConverter<const std::vector<uint8_t>, gfx::Rect>::Convert( |
| 16 const gfx::Rect& input) { | 18 const gfx::Rect& input) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 113 |
| 112 // static | 114 // static |
| 113 std::string | 115 std::string |
| 114 TypeConverter<std::string, const std::vector<uint8_t>>::Convert( | 116 TypeConverter<std::string, const std::vector<uint8_t>>::Convert( |
| 115 const std::vector<uint8_t>& input) { | 117 const std::vector<uint8_t>& input) { |
| 116 return std::string(input.begin(), input.end()); | 118 return std::string(input.begin(), input.end()); |
| 117 } | 119 } |
| 118 | 120 |
| 119 } // namespace mojo | 121 } // namespace mojo |
| 120 | 122 |
| OLD | NEW |