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

Unified Diff: components/mus/ws/window_tree_host_delegate.h

Issue 1750143002: Changes ownership of WindowTreeHostConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 10 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 | « components/mus/ws/window_tree_host_connection.cc ('k') | components/mus/ws/window_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_host_delegate.h
diff --git a/components/mus/ws/window_tree_host_delegate.h b/components/mus/ws/window_tree_host_delegate.h
deleted file mode 100644
index 84eec7a33e055027438d41167e71dc01b069ba06..0000000000000000000000000000000000000000
--- a/components/mus/ws/window_tree_host_delegate.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_
-#define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_
-
-namespace mus {
-
-namespace ws {
-
-class WindowTreeImpl;
-
-// A WindowTreeHostDelegate interface is implemented by an object that
-// has the WindowTreeImpl that is associated with the WindowTreeHostImpl that
-// holds a pointer to this object. Typically, a WindowTreeHostDelegate will also
-// manage the lifetime of the WindowTreeHostImpl and will delete the object when
-// it get informed of when the Display of the root is closed.
-class WindowTreeHostDelegate {
- public:
- // Called when the window associated with the root is completely initialized
- // (i.e. the ViewportMetrics for the display is known).
- virtual void OnDisplayInitialized() = 0;
-
- // Called when the window associated with the root is closed.
- virtual void OnDisplayClosed() = 0;
-
- // Returns the WindowTreeImpl associated with the delegate.
- virtual const WindowTreeImpl* GetWindowTree() const = 0;
- WindowTreeImpl* GetWindowTree() {
- return const_cast<WindowTreeImpl*>(
- const_cast<const WindowTreeHostDelegate*>(this)->GetWindowTree());
- }
-
- protected:
- virtual ~WindowTreeHostDelegate() {}
-};
-
-} // namespace ws
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_
« no previous file with comments | « components/mus/ws/window_tree_host_connection.cc ('k') | components/mus/ws/window_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698