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

Unified Diff: mojo/examples/pepper_container_app/pepper_container_app.cc

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
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_)
« no previous file with comments | « mojo/examples/compositor_app/compositor_app.cc ('k') | mojo/examples/pepper_container_app/type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698