OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "mojo/public/cpp/bindings/type_converter.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 #include "components/framelet/common/framelet.mojom.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 template <> |
| 13 struct TypeConverter<int, framelet::mojom::ValuePtr> { |
| 14 static int Convert(const framelet::mojom::ValuePtr& input); |
| 15 }; |
| 16 |
| 17 template <> |
| 18 struct TypeConverter<framelet::mojom::ValuePtr, int> { |
| 19 static framelet::mojom::ValuePtr Convert(int input); |
| 20 }; |
| 21 |
| 22 template <> |
| 23 struct TypeConverter<bool, framelet::mojom::ValuePtr> { |
| 24 static bool Convert(const framelet::mojom::ValuePtr& input); |
| 25 }; |
| 26 |
| 27 template <> |
| 28 struct TypeConverter<framelet::mojom::ValuePtr, bool> { |
| 29 static framelet::mojom::ValuePtr Convert(bool input); |
| 30 }; |
| 31 |
| 32 template <> |
| 33 struct TypeConverter<framelet::mojom::ValuePtr, std::string> { |
| 34 static framelet::mojom::ValuePtr Convert(const std::string& input); |
| 35 }; |
| 36 |
| 37 template <> |
| 38 struct TypeConverter<base::Value*, framelet::mojom::ValuePtr> { |
| 39 static base::Value* Convert(const framelet::mojom::ValuePtr& value); |
| 40 }; |
| 41 |
| 42 } // namesapce mojo |
OLD | NEW |