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

Unified Diff: mojo/aura/window_tree_host_mojo.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/aura/window_tree_host_mojo.cc
diff --git a/mojo/aura/window_tree_host_mojo.cc b/mojo/aura/window_tree_host_mojo.cc
index b623bbdcd21db20905f0a0098da08a3410ac9df3..9aba1d8af859db89c3f4d1907e2ab3a356056f23 100644
--- a/mojo/aura/window_tree_host_mojo.cc
+++ b/mojo/aura/window_tree_host_mojo.cc
@@ -26,12 +26,14 @@ mojo::ContextFactoryMojo* WindowTreeHostMojo::context_factory_ = NULL;
// WindowTreeHostMojo, public:
WindowTreeHostMojo::WindowTreeHostMojo(
- ScopedNativeViewportHandle viewport_handle,
+ NativeViewportPtr viewport,
const gfx::Rect& bounds,
const base::Callback<void()>& compositor_created_callback)
- : native_viewport_(viewport_handle.Pass(), this),
+ : native_viewport_(viewport.Pass()),
compositor_created_callback_(compositor_created_callback),
bounds_(bounds) {
+ native_viewport_->SetClient(this);
+
AllocationScope scope;
native_viewport_->Create(bounds);

Powered by Google App Engine
This is Rietveld 408576698