OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 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_ |
| 7 |
| 8 #include "ui/views/views_export.h" |
| 9 |
| 10 namespace views { |
| 11 |
| 12 // Allows for the observation of lower level window events. |
| 13 class VIEWS_EXPORT DesktopRootWindowHostObserverX11 { |
| 14 public: |
| 15 virtual ~DesktopRootWindowHostObserverX11() {} |
| 16 |
| 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; |
| 20 |
| 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; |
| 24 }; |
| 25 |
| 26 } // namespace views |
| 27 |
| 28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
| 29 |
OLD | NEW |