layer_observer.h 529 B

123456789101112131415161718192021222324
  1. // Copyright 2016 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. #ifndef UI_COMPOSITOR_LAYER_OBSERVER_H_
  5. #define UI_COMPOSITOR_LAYER_OBSERVER_H_
  6. #include "ui/compositor/compositor_export.h"
  7. namespace ui {
  8. class Layer;
  9. class COMPOSITOR_EXPORT LayerObserver {
  10. public:
  11. virtual void LayerDestroyed(Layer* layer) {}
  12. protected:
  13. virtual ~LayerObserver() {}
  14. };
  15. } // namespace ui
  16. #endif // UI_COMPOSITOR_LAYER_OBSERVER_H_