Index: mojo/examples/pepper_container_app/pepper_container_app.cc |
diff --git a/mojo/examples/pepper_container_app/pepper_container_app.cc b/mojo/examples/pepper_container_app/pepper_container_app.cc |
index d8ba4e8fb3f6dee53ba6f5519f98967264deb785..8b059c4e2894d1248c538a76e69f099ca490bfce 100644 |
--- a/mojo/examples/pepper_container_app/pepper_container_app.cc |
+++ b/mojo/examples/pepper_container_app/pepper_container_app.cc |
@@ -16,6 +16,7 @@ |
#include "mojo/public/cpp/application/application_impl.h" |
#include "mojo/public/cpp/application/application_runner_chromium.h" |
#include "mojo/public/cpp/system/core.h" |
+#include "mojo/services/public/interfaces/geometry/geometry.mojom.h" |
#include "mojo/services/public/interfaces/gpu/gpu.mojom.h" |
#include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.h" |
#include "ppapi/c/pp_rect.h" |
@@ -41,12 +42,10 @@ class PepperContainerApp: public ApplicationDelegate, |
// TODO(jamesr): Should be mojo:mojo_gpu_service |
app->ConnectToService("mojo:mojo_native_viewport_service", &gpu_service_); |
- RectPtr rect(Rect::New()); |
- rect->x = 10; |
- rect->y = 10; |
- rect->width = 800; |
- rect->height = 600; |
- viewport_->Create(rect.Pass()); |
+ SizePtr size(Size::New()); |
+ size->width = 800; |
+ size->height = 600; |
+ viewport_->Create(size.Pass()); |
viewport_->Show(); |
} |
@@ -71,7 +70,7 @@ class PepperContainerApp: public ApplicationDelegate, |
base::MessageLoop::current()->Quit(); |
} |
- virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE { |
+ virtual void OnBoundsChanged(SizePtr bounds) OVERRIDE { |
ppapi::ProxyAutoLock lock; |
if (plugin_instance_) |