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

Unified Diff: mojo/aura/window_tree_host_mojo.cc

Issue 460863002: Rename Node to View in the View Manager mojom & client lib. Service TBD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/aura/window_tree_host_mojo.h ('k') | mojo/examples/aura_demo/aura_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d92e3556c77a3b8ef2cccd3cf26db94a47879f6f..8ef87c6c673cca683b285ced2f225a9e9eb79805 100644
--- a/mojo/aura/window_tree_host_mojo.cc
+++ b/mojo/aura/window_tree_host_mojo.cc
@@ -61,19 +61,19 @@ class TreeHosts : public base::SupportsUserData::Data {
////////////////////////////////////////////////////////////////////////////////
// WindowTreeHostMojo, public:
-WindowTreeHostMojo::WindowTreeHostMojo(Node* node,
+WindowTreeHostMojo::WindowTreeHostMojo(View* view,
WindowTreeHostMojoDelegate* delegate)
- : node_(node),
- bounds_(node->bounds()),
+ : view_(view),
+ bounds_(view->bounds()),
delegate_(delegate) {
- node_->AddObserver(this);
+ view_->AddObserver(this);
CreateCompositor(GetAcceleratedWidget());
TreeHosts::Get()->Add(this);
}
WindowTreeHostMojo::~WindowTreeHostMojo() {
- node_->RemoveObserver(this);
+ view_->RemoveObserver(this);
TreeHosts::Get()->Remove(this);
DestroyCompositor();
DestroyDispatcher();
@@ -157,10 +157,10 @@ ui::EventProcessor* WindowTreeHostMojo::GetEventProcessor() {
}
////////////////////////////////////////////////////////////////////////////////
-// WindowTreeHostMojo, NodeObserver implementation:
+// WindowTreeHostMojo, ViewObserver implementation:
-void WindowTreeHostMojo::OnNodeBoundsChanged(
- Node* node,
+void WindowTreeHostMojo::OnViewBoundsChanged(
+ View* view,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
bounds_ = new_bounds;
« no previous file with comments | « mojo/aura/window_tree_host_mojo.h ('k') | mojo/examples/aura_demo/aura_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698