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

Unified Diff: mojo/services/public/cpp/view_manager/view_tree_node.h

Issue 260863008: Add support for mapping node tree on the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_manager.h ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/cpp/view_manager/view_tree_node.h
diff --git a/mojo/services/public/cpp/view_manager/view_tree_node.h b/mojo/services/public/cpp/view_manager/view_tree_node.h
index d187c662c8fdcf5318958ea19d3d133e98a58c76..4256a19f6b461cdadf4f6f4fee9bb96bae879684 100644
--- a/mojo/services/public/cpp/view_manager/view_tree_node.h
+++ b/mojo/services/public/cpp/view_manager/view_tree_node.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/observer_list.h"
+#include "mojo/services/public/cpp/view_manager/view_manager_types.h"
namespace mojo {
namespace services {
@@ -26,7 +27,7 @@ class ViewTreeNode {
~ViewTreeNode();
// Configuration.
- uint16_t id() const { return id_; }
+ TransportNodeId id() const { return id_; }
void set_owned_by_parent(bool owned_by_parent) {
owned_by_parent_ = owned_by_parent;
}
@@ -48,8 +49,11 @@ class ViewTreeNode {
private:
friend class ViewTreeNodePrivate;
+ void LocalAddChild(ViewTreeNode* child);
+ void LocalRemoveChild(ViewTreeNode* child);
+
ViewManager* manager_;
- uint16_t id_;
+ TransportNodeId id_;
bool owned_by_parent_;
ViewTreeNode* parent_;
Children children_;
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_manager.h ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698