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

Unified Diff: mojo/examples/aura_demo/aura_demo.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/aura_demo/aura_demo.cc
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc
index 14f00f5dfe42af01a9fc69b507c814c700e1a714..46879d9b39ef787526aec0e0fbfd22353e75fbb9 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -117,13 +117,11 @@ class AuraDemo : public Application {
screen_.reset(ScreenMojo::Create());
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get());
- InterfacePipe<NativeViewport, AnyInterface> pipe;
+ NativeViewportPtr native_viewport;
+ ConnectTo("mojo:mojo_native_viewport_service", &native_viewport);
- mojo::AllocationScope scope;
- shell()->Connect("mojo:mojo_native_viewport_service",
- pipe.handle_to_peer.Pass());
window_tree_host_.reset(new WindowTreeHostMojo(
- pipe.handle_to_self.Pass(),
+ native_viewport.Pass(),
gfx::Rect(800, 600),
base::Bind(&AuraDemo::HostContextCreated, base::Unretained(this))));
}

Powered by Google App Engine
This is Rietveld 408576698