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

Unified Diff: trunk/src/mojo/services/public/cpp/view_manager/view_manager.h

Issue 280023002: Revert 269414 "Changes to deletion/ownership of nodes in the cli..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
Index: trunk/src/mojo/services/public/cpp/view_manager/view_manager.h
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/view_manager.h (revision 269420)
+++ trunk/src/mojo/services/public/cpp/view_manager/view_manager.h (working copy)
@@ -5,8 +5,6 @@
#ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
-#include <map>
-
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/public/cpp/bindings/callback.h"
@@ -41,20 +39,15 @@
// TODO(beng): this method could optionally not block if supplied a callback.
void Init();
- ViewTreeNode* tree() { return tree_; }
+ ViewTreeNode* tree() { return tree_.get(); }
- ViewTreeNode* GetNodeById(TransportNodeId id);
-
private:
friend class ViewManagerPrivate;
- typedef std::map<TransportNodeId, ViewTreeNode*> IdToNodeMap;
Shell* shell_;
scoped_ptr<ViewManagerSynchronizer> synchronizer_;
- ViewTreeNode* tree_;
+ scoped_ptr<ViewTreeNode> tree_;
- IdToNodeMap nodes_;
-
DISALLOW_COPY_AND_ASSIGN(ViewManager);
};

Powered by Google App Engine
This is Rietveld 408576698