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

Unified Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 287053004: SetBounds for ViewTreeNode. (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
Index: mojo/services/public/interfaces/view_manager/view_manager.mojom
diff --git a/mojo/services/public/interfaces/view_manager/view_manager.mojom b/mojo/services/public/interfaces/view_manager/view_manager.mojom
index 39748a1bd421adfd98f34c726900a8f38437cb11..7e0f9f7fc313f4c10993c6c15530671fb4a2d3cf 100644
--- a/mojo/services/public/interfaces/view_manager/view_manager.mojom
+++ b/mojo/services/public/interfaces/view_manager/view_manager.mojom
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import "../../../../public/interfaces/geometry/geometry.mojom"
+
module mojo.view_manager {
struct INode {
@@ -33,6 +35,9 @@ interface IViewManager {
// delete it.
DeleteNode(uint32 node_id) => (bool success);
+ // Sets the specified bounds of the specified node.
+ SetNodeBounds(uint32 node_id, mojo.Rect bounds) => (bool success);
sky 2014/05/21 21:16:35 Do you need the mojo here? Can this be Rect since
+
// Reparents a node. See description above class for details of |change_id|.
// This fails for any of the following reasons:
// . |server_change_id| is not the expected id.
@@ -108,6 +113,9 @@ interface IViewManagerClient {
// OnServerChangeIdAdvanced().
OnServerChangeIdAdvanced(uint32 next_server_change_id);
+ // Invoked when a node's bounds have changed.
+ OnNodeBoundsChanged(uint32 node, mojo.Rect old_bounds, mojo.Rect new_bounds);
+
// Invoked when a change is done to the hierarchy. A value of 0 is used to
// identify a null node. For example, if the old_parent is NULL, 0 is
// supplied. See description above ViewManager for details on the change ids.

Powered by Google App Engine
This is Rietveld 408576698