Index: ui/views/widget/desktop_aura/desktop_root_window_host_observer_x11.h |
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_observer_x11.h b/ui/views/widget/desktop_aura/desktop_root_window_host_observer_x11.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f430b38c20d3f3fcf44b98310d4a98bb2c5556b3 |
--- /dev/null |
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_observer_x11.h |
@@ -0,0 +1,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_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
+#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
+ |
+#include "ui/views/views_export.h" |
+ |
+namespace views { |
+ |
+// Allows for the observation of lower level window events. |
+class VIEWS_EXPORT DesktopRootWindowHostObserverX11 { |
+ public: |
+ virtual ~DesktopRootWindowHostObserverX11() {} |
+ |
+ // 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_ROOT_WINDOW_HOST_OBSERVER_X11_H_ |
+ |