Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Unified Diff: mojo/services/html_viewer/blink_basic_type_converters.h

Issue 710803002: Beginning of an accessibility implementation for html_viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « mojo/services/html_viewer/ax_provider_impl_unittest.cc ('k') | mojo/services/html_viewer/blink_basic_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698