summaryrefslogtreecommitdiff
path: root/chromium/components/exo/notification_surface_manager.h
blob: 2649638d36b2961f80bf6e0c0092e4c0782b55d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2016 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_NOTIFICATION_SURFACE_MANAGER_H_
#define COMPONENTS_EXO_NOTIFICATION_SURFACE_MANAGER_H_

#include <string>

namespace exo {

class NotificationSurface;

class NotificationSurfaceManager {
 public:
  // Gets the NotificationSurface associated with the given notification id.
  // Returns nullptr if no NotificationSurface is associated with the id.
  virtual NotificationSurface* GetSurface(
      const std::string& notification_id) const = 0;

  // Adds a NotificationSurface to the manager.
  virtual void AddSurface(NotificationSurface* surface) = 0;

  // Removes a NotificationSurface from the manager.
  virtual void RemoveSurface(NotificationSurface* surface) = 0;

 protected:
  virtual ~NotificationSurfaceManager() {}
};

}  // namespace exo

#endif  // COMPONENTS_EXO_NOTIFICATION_SURFACE_MANAGER_H_