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

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

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.cc
diff --git a/mojo/services/html_viewer/blink_basic_type_converters.cc b/mojo/services/html_viewer/blink_basic_type_converters.cc
index eb526526a848a64e52ccf170af7338af1adbd0ec..cf6d610c790ab7c06aeb1a6c1ea8910cb8ebc147 100644
--- a/mojo/services/html_viewer/blink_basic_type_converters.cc
+++ b/mojo/services/html_viewer/blink_basic_type_converters.cc
@@ -5,8 +5,10 @@
#include "mojo/services/html_viewer/blink_basic_type_converters.h"
#include "mojo/public/cpp/bindings/string.h"
+#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebString.h"
+using blink::WebRect;
using blink::WebString;
namespace mojo {
@@ -22,6 +24,16 @@ WebString TypeConverter<WebString, String>::Convert(const String& str) {
}
// static
+RectPtr TypeConverter<RectPtr, WebRect>::Convert(const WebRect& input) {
+ RectPtr result(Rect::New());
+ result->x = input.x;
+ result->y = input.y;
+ result->width = input.width;
+ result->height = input.height;
+ return result.Pass();
+};
+
+// static
Array<uint8_t> TypeConverter<Array<uint8_t>, blink::WebString>::Convert(
const blink::WebString& input) {
std::string utf8 = input.utf8();
« no previous file with comments | « mojo/services/html_viewer/blink_basic_type_converters.h ('k') | mojo/services/html_viewer/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698