Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1442)

Unified Diff: ash/wm/window_util.h

Issue 2908793002: [mus+ash] Removes WmWindow from ash/wm/overview and ash/wm/workspace (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/tablet_mode/tablet_mode_window_state.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/wm/tablet_mode/tablet_mode_window_state.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698