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

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

Issue 327073003: Reorder (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
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 d3e6ddf60d75827957e171803baa94442d4a5b65..2d9527c5894ca426e7f78fc4ba4b2968d5a8d309 100644
--- a/mojo/services/public/cpp/view_manager/view_tree_node.h
+++ b/mojo/services/public/cpp/view_manager/view_tree_node.h
@@ -11,6 +11,7 @@
#include "base/observer_list.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/services/public/cpp/view_manager/view_manager_types.h"
+#include "mojo/services/public/interfaces/view_manager/view_manager_constants.mojom.h"
#include "ui/gfx/geometry/rect.h"
namespace mojo {
@@ -52,6 +53,10 @@ class ViewTreeNode {
void AddChild(ViewTreeNode* child);
void RemoveChild(ViewTreeNode* child);
+ void Reorder(ViewTreeNode* relative, OrderDirection direction);
+ void MoveToFront();
+ void MoveToBack();
+
bool Contains(ViewTreeNode* child) const;
ViewTreeNode* GetChildById(Id id);
@@ -76,6 +81,8 @@ class ViewTreeNode {
void LocalDestroy();
void LocalAddChild(ViewTreeNode* child);
void LocalRemoveChild(ViewTreeNode* child);
+ // Returns true if the order actually changed.
+ bool LocalReorder(ViewTreeNode* relative, OrderDirection direction);
void LocalSetActiveView(View* view);
void LocalSetBounds(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds);

Powered by Google App Engine
This is Rietveld 408576698