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

Unified Diff: mojo/aura/window_tree_host_mojo.h

Issue 341953002: Clean up WTH creation (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
« no previous file with comments | « no previous file | mojo/aura/window_tree_host_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | mojo/aura/window_tree_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698