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

Unified Diff: ui/aura/mus/window_manager_delegate.h

Issue 2536943005: Adds couple of functions to WindowManagerDelegate: (Closed)
Patch Set: comment Created 4 years, 1 month 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 | « services/ui/test_wm/test_wm.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_manager_delegate.h
diff --git a/ui/aura/mus/window_manager_delegate.h b/ui/aura/mus/window_manager_delegate.h
index fe8203e83630f9d32f9031ae5bd9d7456c7d6df5..4d1353974717514b37be5c4137ac106a42744260 100644
--- a/ui/aura/mus/window_manager_delegate.h
+++ b/ui/aura/mus/window_manager_delegate.h
@@ -60,6 +60,11 @@ class AURA_EXPORT WindowManagerClient {
const gfx::Vector2d& offset,
const gfx::Insets& hit_area) = 0;
+ // Requests the client embedded in |window| to close the window. Only
+ // applicable to top-level windows. If a client is not embedded in |window|,
+ // this does nothing.
+ virtual void RequestClose(Window* window) = 0;
+
protected:
virtual ~WindowManagerClient() {}
};
@@ -107,6 +112,12 @@ class AURA_EXPORT WindowManagerDelegate {
const std::set<Window*>& client_windows,
bool janky) = 0;
+ // When a new display is added OnWmWillCreateDisplay() is called, and then
+ // OnWmNewDisplay(). OnWmWillCreateDisplay() is intended to add the display
+ // to the set of displays (see Screen).
+ virtual void OnWmWillCreateDisplay(const display::Display& display) = 0;
+
+ // Called when a WindowTreeHostMus is created for a new display
// Called when a display is added. |window_tree_host| is the WindowTreeHost
// for the new display.
virtual void OnWmNewDisplay(
@@ -131,6 +142,12 @@ class AURA_EXPORT WindowManagerDelegate {
virtual void OnWmCancelMoveLoop(Window* window) = 0;
+ // Called when then client changes the client area of a window.
+ virtual void OnWmSetClientArea(
+ Window* window,
+ const gfx::Insets& insets,
+ const std::vector<gfx::Rect>& additional_client_areas) = 0;
+
protected:
virtual ~WindowManagerDelegate() {}
};
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698