toast_surface_manager.h 660 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 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 COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_
  5. #define COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_
  6. namespace exo {
  7. class ToastSurface;
  8. class ToastSurfaceManager {
  9. public:
  10. virtual ~ToastSurfaceManager() = default;
  11. // Adds an ToastSurface to the manager.
  12. virtual void AddSurface(ToastSurface* surface) = 0;
  13. // Removes an ToastSurface from the manager.
  14. virtual void RemoveSurface(ToastSurface* surface) = 0;
  15. };
  16. } // namespace exo
  17. #endif // COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_