OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_EXO_SURFACE_OBSERVER_H_ |
| 6 #define COMPONENTS_EXO_SURFACE_OBSERVER_H_ |
| 7 |
| 8 namespace exo { |
| 9 class Surface; |
| 10 |
| 11 // Observers can listen to various events on the Surfaces. |
| 12 class SurfaceObserver { |
| 13 public: |
| 14 // Called at the top of the surface's destructor, to give observers a |
| 15 // chance to remove themselves. |
| 16 virtual void OnSurfaceDestroying(Surface* surface) = 0; |
| 17 |
| 18 protected: |
| 19 virtual ~SurfaceObserver() {} |
| 20 }; |
| 21 |
| 22 } // namespace exo |
| 23 |
| 24 #endif // COMPONENTS_EXO_SURFACE_OBSERVER_H_ |
OLD | NEW |