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

Unified Diff: mojo/examples/aura_demo/root_window_host_mojo.cc

Issue 109103003: Mojo: abstract interface implementation from generated Stub classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix build Created 6 years, 11 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
« no previous file with comments | « mojo/examples/aura_demo/root_window_host_mojo.h ('k') | mojo/examples/compositor_app/compositor_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/root_window_host_mojo.cc
diff --git a/mojo/examples/aura_demo/root_window_host_mojo.cc b/mojo/examples/aura_demo/root_window_host_mojo.cc
index db3e13dbc60c0b74635ae3369dc736e9fdced0e4..95d1ff0f1ee7333fc5ad57c2d165fd5a5b2d1f54 100644
--- a/mojo/examples/aura_demo/root_window_host_mojo.cc
+++ b/mojo/examples/aura_demo/root_window_host_mojo.cc
@@ -26,9 +26,8 @@ ui::ContextFactory* RootWindowHostMojo::context_factory_ = NULL;
RootWindowHostMojo::RootWindowHostMojo(
ScopedMessagePipeHandle viewport_handle,
const base::Callback<void()>& compositor_created_callback)
- : native_viewport_(viewport_handle.Pass()),
+ : native_viewport_(viewport_handle.Pass(), this),
compositor_created_callback_(compositor_created_callback) {
- native_viewport_.SetPeer(this);
native_viewport_->Open();
ScopedMessagePipeHandle gles2_handle;
@@ -147,7 +146,7 @@ void RootWindowHostMojo::PrepareForShutdown() {
}
////////////////////////////////////////////////////////////////////////////////
-// RootWindowHostMojo, NativeViewportClientStub implementation:
+// RootWindowHostMojo, NativeViewportClient implementation:
void RootWindowHostMojo::OnCreated() {
}
« no previous file with comments | « mojo/examples/aura_demo/root_window_host_mojo.h ('k') | mojo/examples/compositor_app/compositor_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698