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

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

Issue 338093008: Client side name cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/image_viewer/image_viewer.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/nesting_app/nesting_app.cc
diff --git a/mojo/examples/nesting_app/nesting_app.cc b/mojo/examples/nesting_app/nesting_app.cc
index b882f4a7d2cab4b1649e3d8fbf3814fa86b16abc..dee9497b10cecc818ecf889a23f9a4f6c8f09afc 100644
--- a/mojo/examples/nesting_app/nesting_app.cc
+++ b/mojo/examples/nesting_app/nesting_app.cc
@@ -8,21 +8,21 @@
#include "mojo/examples/window_manager/window_manager.mojom.h"
#include "mojo/public/cpp/application/application.h"
#include "mojo/services/navigation/navigation.mojom.h"
+#include "mojo/services/public/cpp/view_manager/node.h"
+#include "mojo/services/public/cpp/view_manager/node_observer.h"
#include "mojo/services/public/cpp/view_manager/view.h"
#include "mojo/services/public/cpp/view_manager/view_manager.h"
#include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
#include "mojo/services/public/cpp/view_manager/view_observer.h"
-#include "mojo/services/public/cpp/view_manager/view_tree_node.h"
-#include "mojo/services/public/cpp/view_manager/view_tree_node_observer.h"
#include "ui/events/event_constants.h"
#include "url/gurl.h"
+using mojo::view_manager::Node;
+using mojo::view_manager::NodeObserver;
using mojo::view_manager::View;
using mojo::view_manager::ViewManager;
using mojo::view_manager::ViewManagerDelegate;
using mojo::view_manager::ViewObserver;
-using mojo::view_manager::ViewTreeNode;
-using mojo::view_manager::ViewTreeNodeObserver;
namespace mojo {
namespace examples {
@@ -66,14 +66,13 @@ class NestingApp : public Application,
}
// Overridden from ViewManagerDelegate:
- virtual void OnRootAdded(ViewManager* view_manager,
- ViewTreeNode* root) OVERRIDE {
+ virtual void OnRootAdded(ViewManager* view_manager, Node* root) OVERRIDE {
View* view = View::Create(view_manager);
root->SetActiveView(view);
view->SetColor(SK_ColorCYAN);
view->AddObserver(this);
- nested_ = ViewTreeNode::Create(view_manager);
+ nested_ = Node::Create(view_manager);
root->AddChild(nested_);
nested_->SetBounds(gfx::Rect(20, 20, 50, 50));
nested_->Embed(kEmbeddedAppURL);
@@ -84,8 +83,7 @@ class NestingApp : public Application,
NavigateChild();
}
- virtual void OnRootRemoved(ViewManager* view_manager,
- ViewTreeNode* root) OVERRIDE {
+ virtual void OnRootRemoved(ViewManager* view_manager, Node* root) OVERRIDE {
// TODO(beng): reap views & child nodes.
nested_ = NULL;
}
@@ -107,7 +105,7 @@ class NestingApp : public Application,
}
std::string color_;
- ViewTreeNode* nested_;
+ Node* nested_;
navigation::NavigatorPtr navigator_;
IWindowManagerPtr window_manager_;
« no previous file with comments | « mojo/examples/image_viewer/image_viewer.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698