summaryrefslogtreecommitdiff
path: root/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h
blob: 544f20527aaf50592b5fbc4ab8b95392aff01c3b (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
// Copyright 2013 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_

#include "ui/views/views_export.h"

namespace views {

// Allows for the observation of lower level window events.
class VIEWS_EXPORT DesktopWindowTreeHostObserverX11 {
 public:
  virtual ~DesktopWindowTreeHostObserverX11() {}

  // Called after we receive a MapNotify event (the X11 server has allocated
  // resources for it).
  virtual void OnWindowMapped(unsigned long xid) = 0;

  // Called after we receive an UnmapNotify event (the X11 server has freed
  // resources for it).
  virtual void OnWindowUnmapped(unsigned long xid) = 0;
};

}  // namespace views

#endif  // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_