| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ | 5 #ifndef SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ |
| 6 #define SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ | 6 #define SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/bindings/array.h" |
| 8 #include "mojo/public/cpp/bindings/type_converter.h" | 9 #include "mojo/public/cpp/bindings/type_converter.h" |
| 9 | |
| 10 #include "mojo/public/cpp/bindings/array.h" | |
| 11 #include "sky/engine/public/platform/WebVector.h" | 10 #include "sky/engine/public/platform/WebVector.h" |
| 12 | 11 |
| 13 namespace blink { | 12 namespace blink { |
| 14 class WebString; | 13 class WebString; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace mojo { | 16 namespace mojo { |
| 18 class String; | 17 class String; |
| 19 | 18 |
| 20 template<> | 19 template<> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 Array<T> array(vector.size()); | 31 Array<T> array(vector.size()); |
| 33 for (size_t i = 0; i < vector.size(); ++i) | 32 for (size_t i = 0; i < vector.size(); ++i) |
| 34 array[i] = TypeConverter<T, U>::Convert(vector[i]); | 33 array[i] = TypeConverter<T, U>::Convert(vector[i]); |
| 35 return array.Pass(); | 34 return array.Pass(); |
| 36 } | 35 } |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace mojo | 38 } // namespace mojo |
| 40 | 39 |
| 41 #endif // SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ | 40 #endif // SKY_VIEWER_CONVERTERS_BASIC_TYPES_H_ |
| OLD | NEW |