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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1492323003: Updates shadow when active window changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years 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/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window_tree_client_impl.h
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.h b/components/mus/public/cpp/lib/window_tree_client_impl.h
index af224dbc0e1b6fbbe3b438aed90771c4a4cd53ee..7a40c4468c5f1d03c07727e687e25bcbfe91aea6 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.h
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.h
@@ -7,6 +7,7 @@
#include <map>
+#include "base/observer_list.h"
#include "components/mus/common/types.h"
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_tree_connection.h"
@@ -129,6 +130,8 @@ class WindowTreeClientImpl : public WindowTreeConnection,
Window* NewWindow(const Window::SharedProperties* properties) override;
bool IsEmbedRoot() override;
ConnectionSpecificId GetConnectionId() override;
+ void AddObserver(WindowTreeConnectionObserver* observer) override;
+ void RemoveObserver(WindowTreeConnectionObserver* observer) override;
// Overridden from WindowTreeClient:
void OnEmbed(ConnectionSpecificId connection_id,
@@ -211,6 +214,8 @@ class WindowTreeClientImpl : public WindowTreeConnection,
bool in_destructor_;
+ base::ObserverList<WindowTreeConnectionObserver> observers_;
+
MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
};
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698