OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 | 11 |
12 // Allows for the observation of lower level window events. | 12 // Allows for the observation of lower level window events. |
13 class VIEWS_EXPORT DesktopRootWindowHostObserverX11 { | 13 class VIEWS_EXPORT DesktopWindowTreeHostObserverX11 { |
14 public: | 14 public: |
15 virtual ~DesktopRootWindowHostObserverX11() {} | 15 virtual ~DesktopWindowTreeHostObserverX11() {} |
16 | 16 |
17 // Called after we receive a MapNotify event (the X11 server has allocated | 17 // Called after we receive a MapNotify event (the X11 server has allocated |
18 // resources for it). | 18 // resources for it). |
19 virtual void OnWindowMapped(unsigned long xid) = 0; | 19 virtual void OnWindowMapped(unsigned long xid) = 0; |
20 | 20 |
21 // Called after we receive an UnmapNotify event (the X11 server has freed | 21 // Called after we receive an UnmapNotify event (the X11 server has freed |
22 // resources for it). | 22 // resources for it). |
23 virtual void OnWindowUnmapped(unsigned long xid) = 0; | 23 virtual void OnWindowUnmapped(unsigned long xid) = 0; |
24 }; | 24 }; |
25 | 25 |
26 } // namespace views | 26 } // namespace views |
27 | 27 |
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ | 28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
29 | 29 |
OLD | NEW |