Index: mojo/aura/window_tree_host_mojo.h |
diff --git a/mojo/aura/window_tree_host_mojo.h b/mojo/aura/window_tree_host_mojo.h |
index c01dbadd1b868cc9f8ac8d23e4c94c6c7e233227..993c4b1a02c332027540cf0becddbc92dad6ea64 100644 |
--- a/mojo/aura/window_tree_host_mojo.h |
+++ b/mojo/aura/window_tree_host_mojo.h |
@@ -5,6 +5,7 @@ |
#ifndef MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
#define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
+#include "mojo/services/public/cpp/view_manager/node_observer.h" |
#include "ui/aura/window_tree_host.h" |
#include "ui/events/event_source.h" |
#include "ui/gfx/geometry/rect.h" |
@@ -19,9 +20,11 @@ namespace mojo { |
class WindowTreeHostMojoDelegate; |
-class WindowTreeHostMojo : public aura::WindowTreeHost, public ui::EventSource { |
+class WindowTreeHostMojo : public aura::WindowTreeHost, |
+ public ui::EventSource, |
+ public view_manager::NodeObserver { |
public: |
- WindowTreeHostMojo(const gfx::Rect& bounds, |
+ WindowTreeHostMojo(view_manager::Node* node, |
WindowTreeHostMojoDelegate* delegate); |
virtual ~WindowTreeHostMojo(); |
@@ -58,6 +61,15 @@ class WindowTreeHostMojo : public aura::WindowTreeHost, public ui::EventSource { |
// ui::EventSource: |
virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
+ // view_manager::NodeObserver: |
+ virtual void OnNodeBoundsChange( |
+ view_manager::Node* node, |
+ const gfx::Rect& old_bounds, |
+ const gfx::Rect& new_bounds, |
+ view_manager::NodeObserver::DispositionChangePhase phase) OVERRIDE; |
+ |
+ view_manager::Node* node_; |
+ |
gfx::Rect bounds_; |
WindowTreeHostMojoDelegate* delegate_; |