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

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

Issue 160573002: Move root_window_host* in aura to window_tree_host*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/window_tree_host_mojo.cc ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/launcher/launcher.cc
diff --git a/mojo/examples/launcher/launcher.cc b/mojo/examples/launcher/launcher.cc
index 1ba904325d6de264162357ec6f6c983ad8ccef35..2f802d90551dee8a9d02b9ef1b6ef702b43cc627 100644
--- a/mojo/examples/launcher/launcher.cc
+++ b/mojo/examples/launcher/launcher.cc
@@ -12,7 +12,7 @@
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "mojo/examples/aura_demo/demo_screen.h"
-#include "mojo/examples/aura_demo/root_window_host_mojo.h"
+#include "mojo/examples/aura_demo/window_tree_host_mojo.h"
#include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/gles2/gles2_cpp.h"
@@ -205,7 +205,7 @@ class LauncherImpl : public Application,
shell()->Connect("mojo:mojo_native_viewport_service",
pipe.handle_to_peer.Pass());
- root_window_host_.reset(new WindowTreeHostMojo(
+ window_tree_host_.reset(new WindowTreeHostMojo(
pipe.handle_to_self.Pass(), gfx::Rect(50, 50, 450, 60),
base::Bind(&LauncherImpl::HostContextCreated, base::Unretained(this))));
}
@@ -239,9 +239,9 @@ class LauncherImpl : public Application,
void HostContextCreated() {
aura::RootWindow::CreateParams params(gfx::Rect(450, 60));
- params.host = root_window_host_.get();
+ params.host = window_tree_host_.get();
root_window_.reset(new aura::RootWindow(params));
- root_window_host_->set_delegate(root_window_.get());
+ window_tree_host_->set_delegate(root_window_.get());
root_window_->Init();
root_window_->window()->SetBounds(gfx::Rect(450, 60));
@@ -274,7 +274,7 @@ class LauncherImpl : public Application,
LauncherController launcher_controller_;
RemotePtr<LauncherClient> launcher_client_;
- scoped_ptr<WindowTreeHostMojo> root_window_host_;
+ scoped_ptr<WindowTreeHostMojo> window_tree_host_;
scoped_ptr<aura::RootWindow> root_window_;
bool pending_show_;
« no previous file with comments | « mojo/examples/aura_demo/window_tree_host_mojo.cc ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698