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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 4100507cd8258422712c3cd86f63d2371601961b..db2fad4a05969d1ac956d5c3b70bbecb676c64e7 100644
--- a/mojo/examples/pepper_container_app/pepper_container_app.cc
+++ b/mojo/examples/pepper_container_app/pepper_container_app.cc
@@ -12,7 +12,6 @@
#include "mojo/examples/pepper_container_app/plugin_module.h"
#include "mojo/examples/pepper_container_app/type_converters.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
-#include "mojo/public/cpp/bindings/remote_ptr.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/gles2/gles2.h"
#include "mojo/public/cpp/shell/application.h"
@@ -43,11 +42,11 @@ class PepperContainerApp: public Application,
: Application(shell_handle),
ppapi_globals_(this),
plugin_module_(new PluginModule) {
- InterfacePipe<NativeViewport, AnyInterface> viewport_pipe;
mojo::AllocationScope scope;
- shell()->Connect("mojo:mojo_native_viewport_service",
- viewport_pipe.handle_to_peer.Pass());
- viewport_.reset(viewport_pipe.handle_to_self.Pass(), this);
+
+ ConnectTo("mojo:mojo_native_viewport_service", &viewport_);
+ viewport_->SetClient(this);
+
Rect::Builder rect;
Point::Builder point;
point.set_x(10);
@@ -110,7 +109,7 @@ class PepperContainerApp: public Application,
private:
MojoPpapiGlobals ppapi_globals_;
- RemotePtr<NativeViewport> viewport_;
+ NativeViewportPtr viewport_;
scoped_refptr<PluginModule> plugin_module_;
scoped_ptr<PluginInstance> plugin_instance_;

Powered by Google App Engine
This is Rietveld 408576698