Index: mojo/services/html_viewer/blink_basic_type_converters.h |
diff --git a/mojo/services/html_viewer/blink_basic_type_converters.h b/mojo/services/html_viewer/blink_basic_type_converters.h |
index 60ddeee087c6ebea307e7ff15f17bf758442d1cf..987d0a33ecdcc0fe51a7e00948de351651edd405 100644 |
--- a/mojo/services/html_viewer/blink_basic_type_converters.h |
+++ b/mojo/services/html_viewer/blink_basic_type_converters.h |
@@ -8,9 +8,11 @@ |
#include "mojo/public/cpp/bindings/type_converter.h" |
#include "mojo/public/cpp/bindings/array.h" |
+#include "mojo/services/public/interfaces/geometry/geometry.mojom.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
namespace blink { |
+struct WebRect; |
class WebString; |
} |
@@ -30,6 +32,11 @@ struct TypeConverter<Array<uint8_t>, blink::WebString> { |
static Array<uint8_t> Convert(const blink::WebString& input); |
}; |
+template <> |
+struct TypeConverter<RectPtr, blink::WebRect> { |
+ static RectPtr Convert(const blink::WebRect& input); |
+}; |
+ |
template<typename T, typename U> |
struct TypeConverter<Array<T>, blink::WebVector<U> > { |
static Array<T> Convert(const blink::WebVector<U>& vector) { |