1 // Copyright 2013 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.
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_
8 #include "ui/views/views_export.h"
12 // Allows for the observation of lower level window events.
13 class VIEWS_EXPORT DesktopWindowTreeHostObserverX11
{
15 virtual ~DesktopWindowTreeHostObserverX11() {}
17 // Called after we receive a MapNotify event (the X11 server has allocated
19 virtual void OnWindowMapped(unsigned long xid
) = 0;
21 // Called after we receive an UnmapNotify event (the X11 server has freed
23 virtual void OnWindowUnmapped(unsigned long xid
) = 0;
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_