| 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 #ifndef SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ | 5 #ifndef SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ |
| 6 #define SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ | 6 #define SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ |
| 7 | 7 |
| 8 namespace mojio { | 8 namespace mojio { |
| 9 | 9 |
| 10 // TODO(vtl): Stuff copied from mojo/public/cpp/bindings/lib/template_util.h. | 10 // TODO(vtl): Stuff copied from mojo/public/cpp/bindings/lib/template_util.h. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 mojo::Callback<void(T1, T2)> Capture(T1* t1, T2* t2) { | 70 mojo::Callback<void(T1, T2)> Capture(T1* t1, T2* t2) { |
| 71 return [t1, t2](T1 got_t1, T2 got_t2) { | 71 return [t1, t2](T1 got_t1, T2 got_t2) { |
| 72 *t1 = Forward(got_t1); | 72 *t1 = Forward(got_t1); |
| 73 *t2 = Forward(got_t2); | 73 *t2 = Forward(got_t2); |
| 74 }; | 74 }; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace mojio | 77 } // namespace mojio |
| 78 | 78 |
| 79 #endif // SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ | 79 #endif // SERVICES_FILES_C_LIB_TEMPLATE_UTIL_H_ |
| OLD | NEW |