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

Unified Diff: mojo/examples/aura_demo/aura_demo.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 | « chrome/chrome_browser_ui.gypi ('k') | mojo/examples/aura_demo/demo_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f22d9643c580e9dbae65fd558bcb3cd90d634565..6e2811fc1b8699842182bb4af41db6425f8fa7fc 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -9,7 +9,7 @@
#include "base/command_line.h"
#include "base/message_loop/message_loop.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/gles2/gles2_cpp.h"
#include "mojo/public/shell/application.h"
@@ -126,7 +126,7 @@ class AuraDemo : public Application {
mojo::AllocationScope scope;
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(800, 600),
base::Bind(&AuraDemo::HostContextCreated, base::Unretained(this))));
@@ -135,10 +135,10 @@ class AuraDemo : public Application {
private:
void HostContextCreated() {
aura::RootWindow::CreateParams params(
- gfx::Rect(root_window_host_->bounds().size()));
- params.host = root_window_host_.get();
+ gfx::Rect(window_tree_host_->bounds().size()));
+ 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();
window_tree_client_.reset(new DemoWindowTreeClient(root_window_->window()));
@@ -179,7 +179,7 @@ class AuraDemo : public Application {
aura::Window* window2_;
aura::Window* window21_;
- scoped_ptr<WindowTreeHostMojo> root_window_host_;
+ scoped_ptr<WindowTreeHostMojo> window_tree_host_;
scoped_ptr<aura::RootWindow> root_window_;
};
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | mojo/examples/aura_demo/demo_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698