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

Unified Diff: mojo/examples/pepper_container_app/type_converters.h

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 months 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
« no previous file with comments | « mojo/examples/pepper_container_app/pepper_container_app.cc ('k') | mojo/examples/sample_app/sample_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/pepper_container_app/type_converters.h
diff --git a/mojo/examples/pepper_container_app/type_converters.h b/mojo/examples/pepper_container_app/type_converters.h
index 9bb2fb165a238c56a8beb0a03a57b7ce60df131f..6384f5bfb06a32f6b608d29e0bdca337b54e2caf 100644
--- a/mojo/examples/pepper_container_app/type_converters.h
+++ b/mojo/examples/pepper_container_app/type_converters.h
@@ -66,12 +66,11 @@ struct TypeConverter<RectPtr, PP_Rect> {
};
template <>
-struct TypeConverter<PP_Rect, RectPtr> {
- static PP_Rect Convert(const RectPtr& input) {
+struct TypeConverter<PP_Rect, SizePtr> {
+ static PP_Rect Convert(const SizePtr& input) {
if (!input)
return PP_MakeRectFromXYWH(0, 0, 0, 0);
- return PP_MakeRectFromXYWH(input->x, input->y,
- input->width, input->height);
+ return PP_MakeRectFromXYWH(0, 0, input->width, input->height);
}
};
« no previous file with comments | « mojo/examples/pepper_container_app/pepper_container_app.cc ('k') | mojo/examples/sample_app/sample_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698