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

Unified Diff: components/mus/public/cpp/window_tree_client_observer.h

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 7 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: components/mus/public/cpp/window_tree_client_observer.h
diff --git a/components/mus/public/cpp/window_tree_client_observer.h b/components/mus/public/cpp/window_tree_client_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..394a5cea1e1e46dbc68efab380dd14fc88d8a87e
--- /dev/null
+++ b/components/mus/public/cpp/window_tree_client_observer.h
@@ -0,0 +1,27 @@
+// 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_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
+#define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
+
+namespace mus {
+
+class Window;
+class WindowTreeClient;
+
+class WindowTreeClientObserver {
+ public:
+ virtual void OnWindowTreeFocusChanged(Window* gained_focus,
+ Window* lost_focus) {}
+
+ // Called right before the client is destroyed.
+ virtual void OnWillDestroyClient(WindowTreeClient* client) {}
+
+ protected:
+ virtual ~WindowTreeClientObserver() {}
+};
+
+} // namespace mus
+
+#endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
« no previous file with comments | « components/mus/public/cpp/window_tree_client_delegate.h ('k') | components/mus/public/cpp/window_tree_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698