| 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 COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ | 6 #define COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/bindings/type_converter.h" | 8 #include "mojo/public/cpp/bindings/type_converter.h" |
| 9 | 9 |
| 10 #include <stddef.h> |
| 11 #include <stdint.h> |
| 12 |
| 10 #include "mojo/public/cpp/bindings/array.h" | 13 #include "mojo/public/cpp/bindings/array.h" |
| 11 #include "third_party/WebKit/public/platform/WebVector.h" | 14 #include "third_party/WebKit/public/platform/WebVector.h" |
| 12 #include "ui/mojo/geometry/geometry.mojom.h" | 15 #include "ui/mojo/geometry/geometry.mojom.h" |
| 13 | 16 |
| 14 namespace blink { | 17 namespace blink { |
| 15 struct WebRect; | 18 struct WebRect; |
| 16 class WebString; | 19 class WebString; |
| 17 } | 20 } |
| 18 | 21 |
| 19 namespace mojo { | 22 namespace mojo { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 Array<T> array(vector.size()); | 50 Array<T> array(vector.size()); |
| 48 for (size_t i = 0; i < vector.size(); ++i) | 51 for (size_t i = 0; i < vector.size(); ++i) |
| 49 array[i] = TypeConverter<T, U>::Convert(vector[i]); | 52 array[i] = TypeConverter<T, U>::Convert(vector[i]); |
| 50 return array.Pass(); | 53 return array.Pass(); |
| 51 } | 54 } |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace mojo | 57 } // namespace mojo |
| 55 | 58 |
| 56 #endif // COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ | 59 #endif // COMPONENTS_HTML_VIEWER_BLINK_BASIC_TYPE_CONVERTERS_H_ |
| OLD | NEW |