Make castv2 performance test work.
[chromium-blink-merge.git] / ui / views / widget / desktop_aura / desktop_window_tree_host_observer_x11.h
blob544f20527aaf50592b5fbc4ab8b95392aff01c3b
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"
10 namespace views {
12 // Allows for the observation of lower level window events.
13 class VIEWS_EXPORT DesktopWindowTreeHostObserverX11 {
14 public:
15 virtual ~DesktopWindowTreeHostObserverX11() {}
17 // Called after we receive a MapNotify event (the X11 server has allocated
18 // resources for it).
19 virtual void OnWindowMapped(unsigned long xid) = 0;
21 // Called after we receive an UnmapNotify event (the X11 server has freed
22 // resources for it).
23 virtual void OnWindowUnmapped(unsigned long xid) = 0;
26 } // namespace views
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_OBSERVER_X11_H_