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

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

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/cpp/view_manager/view_tree_node_observer.h
diff --git a/mojo/services/public/cpp/view_manager/view_tree_node_observer.h b/mojo/services/public/cpp/view_manager/view_tree_node_observer.h
index 461d29d93ef5892a47f8b602682e3e1795c8126c..116e156d67dc1e46f55d78206a9b1246962cfc9b 100644
--- a/mojo/services/public/cpp/view_manager/view_tree_node_observer.h
+++ b/mojo/services/public/cpp/view_manager/view_tree_node_observer.h
@@ -9,6 +9,10 @@
#include "base/basictypes.h"
+namespace gfx {
+class Rect;
+}
+
namespace mojo {
namespace view_manager {
@@ -41,6 +45,11 @@ class ViewTreeNodeObserver {
View* new_view,
DispositionChangePhase phase) {}
+ virtual void OnNodeBoundsChange(ViewTreeNode* node,
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds,
+ DispositionChangePhase phase) {}
+
protected:
virtual ~ViewTreeNodeObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698