summaryrefslogtreecommitdiffstats
path: root/chromium/components/exo/shell_surface_observer.h
blob: 87b4d64fd95d411c4cebb893f17a2b7c3ed9e366 (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
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_EXO_SHELL_SURFACE_OBSERVER_H_
#define COMPONENTS_EXO_SHELL_SURFACE_OBSERVER_H_

#include <stdint.h>

#include "base/observer_list_types.h"

namespace exo {

class ShellSurfaceObserver : public base::CheckedObserver {
 public:
  // Invoked to notify the configure event with `serial`.
  virtual void OnConfigure(uint32_t serial) {}

  // Invoked to notify an acknowledgement of the configure with `serial`.
  virtual void OnAcknowledgeConfigure(uint32_t serial) {}

  // Invoked when underlying ShellSurface goes away.
  virtual void OnShellSurfaceDestroyed() {}
};

}  // namespace exo

#endif  // COMPONENTS_EXO_SHELL_SURFACE_OBSERVER_H_