summaryrefslogtreecommitdiffstats
path: root/chromium/ui/wm/core/transient_window_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/wm/core/transient_window_observer.h')
-rw-r--r--chromium/ui/wm/core/transient_window_observer.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chromium/ui/wm/core/transient_window_observer.h b/chromium/ui/wm/core/transient_window_observer.h
new file mode 100644
index 00000000000..aff5af5e2ef
--- /dev/null
+++ b/chromium/ui/wm/core/transient_window_observer.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_WM_CORE_TRANSIENT_WINDOW_OBSERVER_H_
+#define UI_WM_CORE_TRANSIENT_WINDOW_OBSERVER_H_
+
+#include "ui/wm/wm_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace wm {
+
+class WM_EXPORT TransientWindowObserver {
+ public:
+ // Called when a transient child is added to |window|.
+ virtual void OnTransientChildAdded(aura::Window* window,
+ aura::Window* transient) = 0;
+
+ // Called when a transient child is removed from |window|.
+ virtual void OnTransientChildRemoved(aura::Window* window,
+ aura::Window* transient) = 0;
+
+ protected:
+ virtual ~TransientWindowObserver() {}
+};
+
+} // namespace wm
+
+#endif // UI_WM_CORE_TRANSIENT_WINDOW_OBSERVER_H_