Index: ash/wm/window_util.h |
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h |
index d1b95504b2dd98662e2040255ae282347ea2acf9..1697eebc694595a1acb9002bec14566a40ab1245 100644 |
--- a/ash/wm/window_util.h |
+++ b/ash/wm/window_util.h |
@@ -21,6 +21,7 @@ class Point; |
namespace ui { |
class Event; |
+class EventHandler; |
} |
namespace ash { |
@@ -76,6 +77,23 @@ ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
ASH_EXPORT int GetNonClientComponent(aura::Window* window, |
const gfx::Point& location); |
+// Requests the |window| to close and destroy itself. This is intended to |
+// forward to an associated widget. |
+ASH_EXPORT void CloseWidgetForWindow(aura::Window* window); |
+ |
+// Adds or removes a handler to receive events targeted at this window, before |
+// this window handles the events itself; the handler does not receive events |
+// from embedded windows. This only supports windows with internal widgets; |
+// see ash::GetInternalWidgetForWindow(). Ownership of the handler is not |
+// transferred. |
+// |
+// Also note that the target of these events is always an aura::Window. |
+ASH_EXPORT void AddLimitedPreTargetHandlerForWindow(ui::EventHandler* handler, |
+ aura::Window* window); |
+ASH_EXPORT void RemoveLimitedPreTargetHandlerForWindow( |
+ ui::EventHandler* handler, |
+ aura::Window* window); |
+ |
} // namespace wm |
} // namespace ash |