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

Unified Diff: mojo/services/view_manager/window_tree_host_impl.h

Issue 372273004: Shutdown cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/view_manager/window_tree_host_impl.h
diff --git a/mojo/services/view_manager/window_tree_host_impl.h b/mojo/services/view_manager/window_tree_host_impl.h
index fc4b12eb367ecb3adb18d7c12320c259b10857dd..f54f514633dad312a69abdebe6b49e5b16bd89d3 100644
--- a/mojo/services/view_manager/window_tree_host_impl.h
+++ b/mojo/services/view_manager/window_tree_host_impl.h
@@ -25,9 +25,11 @@ class WindowTreeHostImpl : public aura::WindowTreeHost,
public ui::EventSource,
public NativeViewportClient {
public:
- WindowTreeHostImpl(NativeViewportPtr viewport,
- const gfx::Rect& bounds,
- const base::Callback<void()>& compositor_created_callback);
+ WindowTreeHostImpl(
+ NativeViewportPtr viewport,
+ const gfx::Rect& bounds,
+ const Callback<void()>& compositor_created_callback,
+ const Callback<void()>& native_viewport_closed_callback);
virtual ~WindowTreeHostImpl();
gfx::Rect bounds() const { return bounds_; }
@@ -54,7 +56,7 @@ class WindowTreeHostImpl : public aura::WindowTreeHost,
// Overridden from NativeViewportClient:
virtual void OnCreated() OVERRIDE;
- virtual void OnDestroyed() OVERRIDE;
+ virtual void OnDestroyed(const mojo::Callback<void()>& callback) OVERRIDE;
virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE;
virtual void OnEvent(EventPtr event,
const mojo::Callback<void()>& callback) OVERRIDE;
@@ -62,7 +64,8 @@ class WindowTreeHostImpl : public aura::WindowTreeHost,
static ContextFactoryImpl* context_factory_;
NativeViewportPtr native_viewport_;
- base::Callback<void()> compositor_created_callback_;
+ Callback<void()> compositor_created_callback_;
+ Callback<void()> native_viewport_closed_callback_;
gfx::Rect bounds_;

Powered by Google App Engine
This is Rietveld 408576698