summaryrefslogtreecommitdiffstats
path: root/mojo/examples/nesting_app
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 16:09:19 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 16:09:19 +0000
commit80b36533b7985789b606b8c4278dc0674c72e188 (patch)
tree482c19e80f50867019aef4a242d5b45b84d5f461 /mojo/examples/nesting_app
parent4851dd2968902ea74086c1e3bb10a17713c7d7ab (diff)
downloadchromium_src-80b36533b7985789b606b8c4278dc0674c72e188.zip
chromium_src-80b36533b7985789b606b8c4278dc0674c72e188.tar.gz
chromium_src-80b36533b7985789b606b8c4278dc0674c72e188.tar.bz2
Client side name cleanup
ViewTreeNode*->Node* ViewManagerSynchcronizer->ViewManagerClientImpl R=sky@chromium.org TBR=sky@chromium.org http://crbug.com/384443 Review URL: https://codereview.chromium.org/338093008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/nesting_app')
-rw-r--r--mojo/examples/nesting_app/nesting_app.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/mojo/examples/nesting_app/nesting_app.cc b/mojo/examples/nesting_app/nesting_app.cc
index b882f4a..dee9497 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_;