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

Unified Diff: components/exo/surface_observer.h

Issue 1419373013: exo: Add support for subcompositor interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere-xdg-shell
Patch Set: address review feedback Created 5 years, 1 month 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/exo/surface_delegate.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface_observer.h
diff --git a/components/exo/surface_observer.h b/components/exo/surface_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd27072676e69364d5727a7e2175f4bb53c63fb2
--- /dev/null
+++ b/components/exo/surface_observer.h
@@ -0,0 +1,24 @@
+// 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_EXO_SURFACE_OBSERVER_H_
+#define COMPONENTS_EXO_SURFACE_OBSERVER_H_
+
+namespace exo {
+class Surface;
+
+// Observers can listen to various events on the Surfaces.
+class SurfaceObserver {
+ public:
+ // Called at the top of the surface's destructor, to give observers a
+ // chance to remove themselves.
+ virtual void OnSurfaceDestroying(Surface* surface) = 0;
+
+ protected:
+ virtual ~SurfaceObserver() {}
+};
+
+} // namespace exo
+
+#endif // COMPONENTS_EXO_SURFACE_OBSERVER_H_
« no previous file with comments | « components/exo/surface_delegate.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698